diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php
index 0028c44c8d..3efbf59628 100644
--- a/pandora_console/include/functions_db.php
+++ b/pandora_console/include/functions_db.php
@@ -2044,7 +2044,7 @@ function db_get_lock($lockname, $expiration_time=86400)
         )
     );
 
-    if ($lock_status === 1) {
+    if ($lock_status == 1) {
         $lock_status = db_get_value_sql(
             sprintf(
                 'SELECT GET_LOCK("%s", %d)',