aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-23 21:20:40 -0700
committerzotlabs <mike@macgirvin.com>2017-05-23 21:20:40 -0700
commit3a00140797fa0d557db2434402ce20258b4ce570 (patch)
treeaa888f90fff49b60760362c0f4235dac17a8818c /include/dba
parentbf580fcc0651663031d74072ee17a8f6becb49fc (diff)
downloadvolse-hubzilla-3a00140797fa0d557db2434402ce20258b4ce570.tar.gz
volse-hubzilla-3a00140797fa0d557db2434402ce20258b4ce570.tar.bz2
volse-hubzilla-3a00140797fa0d557db2434402ce20258b4ce570.zip
remove php version checks for older ( < 5.4) code incompatibilities
Diffstat (limited to 'include/dba')
-rwxr-xr-xinclude/dba/dba_driver.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php
index d362f58b2..b0ad7936c 100755
--- a/include/dba/dba_driver.php
+++ b/include/dba/dba_driver.php
@@ -344,11 +344,8 @@ function q($sql) {
if(\DBA::$dba && \DBA::$dba->connected) {
$stmt = vsprintf($sql, $args);
if($stmt === false) {
- if(version_compare(PHP_VERSION, '5.4.0') >= 0)
- db_logger('dba: vsprintf error: ' .
- print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 1), true),LOGGER_NORMAL,LOG_CRIT);
- else
- db_logger('dba: vsprintf error: ' . print_r(debug_backtrace(), true),LOGGER_NORMAL,LOG_CRIT);
+ db_logger('dba: vsprintf error: ' .
+ print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT, 1), true),LOGGER_NORMAL,LOG_CRIT);
}
if(\DBA::$dba->debug)
db_logger('Sql: ' . $stmt, LOGGER_DEBUG, LOG_INFO);