JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fix db_get_value after mysql->mysqli upgrade
[wfpl.git] / db.php
diff --git a/db.php b/db.php
index 5a9ef89..428c1bf 100644 (file)
--- a/db.php
+++ b/db.php
@@ -276,7 +276,7 @@ function db_get_value($table, $column, $where = '') {
        $result = db_send_get($table, $column, $where, $args);
 
        $value = mysqli_fetch_row($result);
-       if($value !== false) {
+       if($value !== NULL) {
                $value = $value[0];
        }