From b34fcf872851e0ee530aeea929dc298364d5445a Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Mon, 6 Jul 2015 10:19:05 -0400 Subject: [PATCH] remove debug echos --- includes/dbFacile.mysql.php | 11 +---------- includes/dbFacile.mysqli.php | 10 +--------- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/includes/dbFacile.mysql.php b/includes/dbFacile.mysql.php index 44dc5d494..9fd82c698 100644 --- a/includes/dbFacile.mysql.php +++ b/includes/dbFacile.mysql.php @@ -64,11 +64,7 @@ function dbQuery($sql, $parameters=array()) { * */ function dbGetLock($data, $timeout = 0) { $sql = 'SELECT GET_LOCK(\'' . $data . '\',' . $timeout . ')'; - echo "printing sql: "; - echo "$sql\n"; $result = dbFetchCell($sql); - echo "printing result: "; - echo "$result\n"; return $result; } @@ -78,15 +74,10 @@ function dbGetLock($data, $timeout = 0) { * */ function dbReleaseLock($data, $timeout = 0) { $sql = 'SELECT RELEASE_LOCK(\'' . $data . '\')'; - echo "printing sql: "; - echo "$sql\n"; $result = dbFetchCell($sql); - echo "printing result: "; - echo "$result\n"; return $result; -} - + /* * Passed an array and a table name, it attempts to insert the data into the table. * Check for boolean false to determine whether insert failed diff --git a/includes/dbFacile.mysqli.php b/includes/dbFacile.mysqli.php index 7b48ad6b9..36b2208cb 100644 --- a/includes/dbFacile.mysqli.php +++ b/includes/dbFacile.mysqli.php @@ -64,11 +64,7 @@ function dbQuery($sql, $parameters=array()) { * */ function dbGetLock($data, $timeout = 0) { $sql = 'SELECT GET_LOCK(\'' . $data . '\',' . $timeout . ')'; - echo "printing sql: "; - echo "$sql\n"; $result = dbFetchCell($sql); - echo "printing result: "; - echo "$result\n"; return $result; } @@ -78,13 +74,9 @@ function dbGetLock($data, $timeout = 0) { * */ function dbReleaseLock($data, $timeout = 0) { $sql = 'SELECT RELEASE_LOCK(\'' . $data . '\')'; - echo "printing sql: "; - echo "$sql\n"; $result = dbFetchCell($sql); - echo "printing result: "; - echo "$result\n"; return $result; -} + /* * Passed an array and a table name, it attempts to insert the data into the table.