]> git.mjollnir.org Git - moodle.git/commitdiff
Changed one LIMIT to a cross-db WHERE clause
authorstronk7 <stronk7>
Sun, 24 Sep 2006 09:59:25 +0000 (09:59 +0000)
committerstronk7 <stronk7>
Sun, 24 Sep 2006 09:59:25 +0000 (09:59 +0000)
lib/dmllib.php

index 2c9fb5d61ffb1dba15ed2cca2b04a0ab123b93fe..34aee54754c5c3206be4e55af2c0f0bb439599ee 100644 (file)
@@ -1352,7 +1352,7 @@ function column_type($table, $column) {
 
     if (defined('MDL_PERFDB')) { global $PERF ; $PERF->dbqueries++; };
 
-    if(!$rs = $db->Execute('SELECT '.$column.' FROM '.$CFG->prefix.$table.' LIMIT 0')) {
+    if(!$rs = $db->Execute('SELECT '.$column.' FROM '.$CFG->prefix.$table.' WHERE 1=2')) {
         return false;
     }