From: Domas Mituzas Date: Fri, 11 Jun 2004 14:33:29 +0000 (+0000) Subject: allow empty condition for wfGetSQL() X-Git-Tag: 1.5.0alpha1~2925 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=4f8be09d6571bad041cb914bedca3fc2b409d4d9;p=lhc%2Fweb%2Fwiklou.git allow empty condition for wfGetSQL() --- diff --git a/includes/DatabaseFunctions.php b/includes/DatabaseFunctions.php index 89f1befbe7..3b92eaa1eb 100644 --- a/includes/DatabaseFunctions.php +++ b/includes/DatabaseFunctions.php @@ -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 );