plugins/admin/LangManager.php
changeset 377 bb3e6c3bd4f4
parent 376 66732bd4532c
child 387 92664d2efab8
--- a/plugins/admin/LangManager.php	Sat Jan 26 11:51:19 2008 -0500
+++ b/plugins/admin/LangManager.php	Sat Jan 26 15:42:32 2008 -0500
@@ -540,7 +540,10 @@
   echo '</table></div>';
   
   // Reset the result pointer to zero so we can fetch that list of languages again
-  $db->sql_data_seek(0, $q);
+  if ( !$db->sql_data_seek(0, $q) )
+  {
+    $db->_die('LangManager doing seek back to zero for installation blacklist');
+  }
   
   // $lang_list is fetched by the posthandler sometimes
   if ( !isset($lang_list) )
@@ -550,7 +553,7 @@
     $lang_list = list_available_languages();
   }
   
-  while ( $row = $db->fetchrow() )
+  while ( $row = $db->fetchrow($q) )
   {
     $lang_code =& $row['lang_code'];
     if ( isset($lang_list[$lang_code]) )