X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fspool_post.php;h=b7b8de396ad6b0ba47772c15dc76124fd49e2bd8;hb=0cd9db9cb7f4c96f597e37590a536eaae123238d;hp=f64b39e4b687bda0e0b42434ed88c2872367c463;hpb=7f61b2ee151470a34c9a3846e2388c75d73f9460;p=friendica.git diff --git a/include/spool_post.php b/include/spool_post.php index f64b39e4b6..b7b8de396a 100644 --- a/include/spool_post.php +++ b/include/spool_post.php @@ -4,7 +4,7 @@ * @brief Posts items that wer spooled because they couldn't be posted. */ -use \Friendica\Core\Config; +use Friendica\Core\Config; require_once("include/items.php"); @@ -13,7 +13,7 @@ function spool_post_run($argv, $argc) { $path = get_spoolpath(); - if (($path != '') AND is_writable($path)){ + if (($path != '') && is_writable($path)){ if ($dh = opendir($path)) { while (($file = readdir($dh)) !== false) { @@ -30,7 +30,7 @@ function spool_post_run($argv, $argc) { } // We can't read or write the file? So we don't care about it. - if (!is_writable($fullfile) OR !is_readable($fullfile)) { + if (!is_writable($fullfile) || !is_readable($fullfile)) { continue; } @@ -42,7 +42,7 @@ function spool_post_run($argv, $argc) { } // Skip if it doesn't seem to be an item array - if (!isset($arr['uid']) AND !isset($arr['uri']) AND !isset($arr['network'])) { + if (!isset($arr['uid']) && !isset($arr['uri']) && !isset($arr['network'])) { continue; } @@ -55,4 +55,3 @@ function spool_post_run($argv, $argc) { } } } -?>