JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fix (notice level) syntax error
authorJason Woofenden <jason@jasonwoof.com>
Sat, 23 Apr 2016 15:20:11 +0000 (11:20 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Sat, 23 Apr 2016 15:20:11 +0000 (11:20 -0400)
db.php

diff --git a/db.php b/db.php
index 229fe10..6964e95 100644 (file)
--- a/db.php
+++ b/db.php
@@ -83,7 +83,7 @@ function _db_connection_needed() {
                return;
        }
        if (isset($GLOBALS['wfpl_db_connect_args'])) {
                return;
        }
        if (isset($GLOBALS['wfpl_db_connect_args'])) {
-               return call_user_func_array(db_connect_now, $GLOBALS['wfpl_db_connect_args']);
+               return call_user_func_array('db_connect_now', $GLOBALS['wfpl_db_connect_args']);
        }
        die('Error: you must call db_connect() or db_auto_connect() first!');
 }
        }
        die('Error: you must call db_connect() or db_auto_connect() first!');
 }