]> git.mxchange.org Git - friendica.git/commitdiff
cleanup some syntax errors in lock.php
authorZach Prezkuta <fermion@gmx.com>
Sat, 23 Jun 2012 20:25:18 +0000 (14:25 -0600)
committerZach Prezkuta <fermion@gmx.com>
Thu, 5 Jul 2012 20:27:29 +0000 (14:27 -0600)
include/lock.php

index e7e176eeec22aef020a3924f98ddcd36cdb06f00..9bdb71125af64b236ad32c6d7d50d4e0ade517f9 100644 (file)
@@ -48,7 +48,7 @@ function block_on_function_lock($fn_name, $wait_sec = 2) {
 
        do {
                $r = q("SELECT locked FROM locks WHERE name = '%s' LIMIT 1",
-                               dbesc(fn_name)
+                               dbesc($fn_name)
                     );
 
                if(count($r) && $r[0]['locked'])
@@ -61,14 +61,14 @@ function block_on_function_lock($fn_name, $wait_sec = 2) {
 
 
 if(! function_exists('unlock_function')) {
-function unlock_function(fn_name) {
+function unlock_function($fn_name) {
        //$r = q("LOCK TABLE lock WRITE");
        $r = q("UPDATE locks SET locked = 0 WHERE name = '%s' LIMIT 1",
-                       dbesc(fn_name)
+                       dbesc($fn_name)
             );
        //$r = q("UNLOCK TABLES");
 
-       logger('unlock_function: released lock for function ' . fn_name, LOGGER_DEBUG);
+       logger('unlock_function: released lock for function ' . $fn_name, LOGGER_DEBUG);
 
        return;
 }}