From 6cf17c7bcc01bfb4dc0ffc96ca921c2f6baf6942 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 15 Dec 2016 16:41:01 -0800 Subject: use array_shift - it's cleaner --- include/dba/dba_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dba/dba_driver.php') diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php index 81a3bd590..e47f97387 100755 --- a/include/dba/dba_driver.php +++ b/include/dba/dba_driver.php @@ -337,7 +337,7 @@ function db_concat($fld, $sep) { function q($sql) { $args = func_get_args(); - unset($args[0]); + array_shift($args); if(\DBA::$dba && \DBA::$dba->connected) { $stmt = vsprintf($sql, $args); -- cgit v1.2.3