Replace AND and OR in PHP conditions by && and ||
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ class pidfile {
|
||||
|
||||
if (file_exists($this->_file)) {
|
||||
$pid = trim(@file_get_contents($this->_file));
|
||||
if (($pid != "") AND posix_kill($pid, 0)) {
|
||||
if (($pid != "") && posix_kill($pid, 0)) {
|
||||
$this->_running = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user