From 720105b18515ce29f6208e638f89496a2b8d5d16 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Fri, 24 May 2013 11:17:56 -0400 Subject: [PATCH] Make db_query options param optional. --- include/mysql.php | 2 +- include/mysqli.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/mysql.php b/include/mysql.php index c7fcd5aff..7375616d9 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 3a0bab182..327ad52ab 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 -- GitLab