aboutsummaryrefslogtreecommitdiffstats
path: root/include/lock.php
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-06-23 14:25:18 -0600
committerZach Prezkuta <fermion@gmx.com>2012-07-05 14:27:29 -0600
commite0607e0238b52ed47c2330792694f4a72af0dba4 (patch)
treef0a20cc3efa3e52d7252c8078a27727e3c303383 /include/lock.php
parent75ed37fb3d17d97d73a53a62c10caa3a4d11c632 (diff)
downloadvolse-hubzilla-e0607e0238b52ed47c2330792694f4a72af0dba4.tar.gz
volse-hubzilla-e0607e0238b52ed47c2330792694f4a72af0dba4.tar.bz2
volse-hubzilla-e0607e0238b52ed47c2330792694f4a72af0dba4.zip
cleanup some syntax errors in lock.php
Diffstat (limited to 'include/lock.php')
-rw-r--r--include/lock.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/lock.php b/include/lock.php
index e7e176eee..9bdb71125 100644
--- a/include/lock.php
+++ b/include/lock.php
@@ -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;
}}