From 4f8be09d6571bad041cb914bedca3fc2b409d4d9 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 11 Jun 2004 14:33:29 +0000 Subject: [PATCH] allow empty condition for wfGetSQL() --- includes/DatabaseFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1