From c0b77ca795b9939286b8899942600bd4b97f7ccc Mon Sep 17 00:00:00 2001 From: hecht Date: Mon, 24 Oct 2016 20:27:09 +0000 Subject: [PATCH] semaphore issue resolved --- ag/include/semaphore.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ag/include/semaphore.inc.php b/ag/include/semaphore.inc.php index d3bfa02..06fa18a 100644 --- a/ag/include/semaphore.inc.php +++ b/ag/include/semaphore.inc.php @@ -44,7 +44,7 @@ function semaphoreUP($resource){ db_query('DELETE FROM semaphore WHERE TIMESTAMPDIFF(MINUTE, zeit, now()) > 5 and ressource = \''.$resource.'\''); $sql = 'INSERT INTO semaphore(ressource) values(\''.$resource.'\')'; - db_query($sql); + silent_query($sql); if(db_affected_rows() > 0){ // echo 'DEBUG: Semaphore fuer '.$ressource.' belegt!('.db_affected_rows().')
'; $GLOBALS['semaphorecount']++; @@ -61,7 +61,7 @@ function semaphoreUP($resource){ // @Returns TRUE if ok, FALSE on Semaphore error, NULL on MYQL Error function semaphoreDown($resource){ $sql = 'DELETE FROM semaphore where ressource = \''.$resource.'\''; - db_query($sql); + silent_query($sql); if(db_affected_rows() == 0){ // echo 'DEBUG: Semaphore '.$ressource.' war schon freigegeben
'; return false;