allow empty condition for wfGetSQL()
authorDomas Mituzas <midom@users.mediawiki.org>
Fri, 11 Jun 2004 14:33:29 +0000 (14:33 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Fri, 11 Jun 2004 14:33:29 +0000 (14:33 +0000)
includes/DatabaseFunctions.php

index 89f1bef..3b92eaa 100644 (file)
@@ -156,7 +156,7 @@ function wfSetSQL( $table, $var, $value, $cond )
        return $db->set( $table, $var, $value, $cond );
 }
 
-function wfGetSQL( $table, $var, $cond )
+function wfGetSQL( $table, $var, $cond="" )
 {
        $db =& wfGetDB();
        return $db->get( $table, $var, $cond );