JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform calls email() correctly, and uses reply_to field
[wfpl.git] / db.php
diff --git a/db.php b/db.php
index 9390035..0a1369f 100644 (file)
--- a/db.php
+++ b/db.php
@@ -212,7 +212,9 @@ function db_get_value($table, $columns, $where = '') {
 }
 
 function db_count($table, $where = '') {
-       return db_get_value($table, 'count(*)', $where);
+       $args = func_get_args();
+       array_splice($args, 1, 0, array('count(*)'));
+       return call_user_func_array('db_get_value', $args);
 }
 
 # call either of these ways: