diff --git a/include/mysql.php b/include/mysql.php index c7fcd5affbfa0f26adf40a94aa63e51b8e16a84e..7375616d9571f009433f0e88086f824621f52820 100644 --- a/include/mysql.php +++ b/include/mysql.php @@ -16,7 +16,7 @@ vim: expandtab sw=4 ts=4 sts=4: **********************************************************************/ - function db_connect($host, $user, $passwd, $options = NULL) { + function db_connect($host, $user, $passwd, $options = array()) { //Assert if(!strlen($user) || !strlen($passwd) || !strlen($host)) diff --git a/include/mysqli.php b/include/mysqli.php index 3a0bab1823cfa2b57ad9e284c870a36ce5c918d0..327ad52abcda72b264d7cd625cf741a9c70dc3ba 100644 --- a/include/mysqli.php +++ b/include/mysqli.php @@ -18,7 +18,7 @@ **********************************************************************/ $__db = null; -function db_connect($host, $user, $passwd, $options) { +function db_connect($host, $user, $passwd, $options = array()) { global $__db; //Assert