X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=boot.php;h=c759bb93d25f1880f77ac2d82504962b5cb87882;hb=215187595dcdf6ace2ce478c43352c93f9d2bffe;hp=bf09fb2d04baadb11e4b00482ecb71f24595e0fc;hpb=7fe7d0c90437283bd0e83a7e571e1c032e5168ea;p=friendica.git diff --git a/boot.php b/boot.php index bf09fb2d04..c759bb93d2 100644 --- a/boot.php +++ b/boot.php @@ -31,7 +31,7 @@ use Friendica\Model\Contact; define('FRIENDICA_PLATFORM', 'Friendica'); define('FRIENDICA_CODENAME', 'Giant Rhubarb'); -define('FRIENDICA_VERSION', '2022.06'); +define('FRIENDICA_VERSION', '2022.09-dev'); define('DFRN_PROTOCOL_VERSION', '2.23'); define('NEW_TABLE_STRUCTURE_VERSION', 1288); @@ -87,8 +87,8 @@ define('PRIORITIES', [PRIORITY_CRITICAL, PRIORITY_HIGH, PRIORITY_MEDIUM, PRIORIT /* @}*/ // Normally this constant is defined - but not if "pcntl" isn't installed -if (!defined("SIGTERM")) { - define("SIGTERM", 15); +if (!defined('SIGTERM')) { + define('SIGTERM', 15); } /** @@ -117,6 +117,7 @@ function local_user() if (!empty($_SESSION['authenticated']) && !empty($_SESSION['uid'])) { return intval($_SESSION['uid']); } + return false; } @@ -169,7 +170,7 @@ function remote_user() * * @param string $s - Text of notice */ -function notice($s) +function notice(string $s) { if (empty($_SESSION)) { return; @@ -189,7 +190,7 @@ function notice($s) * * @param string $s - Text of notice */ -function info($s) +function info(string $s) { if (empty($_SESSION)) { return;