X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=db.php;h=0a1369fc967fca4fd32c72e83f150c8d55d84f79;hb=9a2257958f77e293a6f49d741405521f02855896;hp=9390035af5044822004aa9195648dcaddd7b304d;hpb=883f464e943d1588c0c4227d7f6e69dedb7b6a21;p=wfpl.git diff --git a/db.php b/db.php index 9390035..0a1369f 100644 --- 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: