From: friendica Date: Fri, 11 May 2012 10:39:29 +0000 (-0700) Subject: balckout: fail silently if less than PHP 5.3 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d6fd0c971713c4b2b1c6cdabbe1b5290112c2932;hp=e5333129856323b6bb28cce25c86f1a26e868f43;p=friendica-addons.git balckout: fail silently if less than PHP 5.3 --- diff --git a/blackout.tgz b/blackout.tgz index ef87ed74..4b5a5d31 100644 Binary files a/blackout.tgz and b/blackout.tgz differ diff --git a/blackout/blackout.php b/blackout/blackout.php index ffd59dca..2cb7c041 100644 --- a/blackout/blackout.php +++ b/blackout/blackout.php @@ -1,7 +1,7 @@ = 5.3 * License: MIT * Version: 1.0 * Author: Tobias Diekershoff @@ -62,6 +62,10 @@ function blackout_redirect ($a, $b) { if (local_user()) { return true; } + + if (! (version_compare(PHP_VERSION, '5.3.0') >= 0)) + return true; + // else... $mystart = get_config('blackout','begindate'); $myend = get_config('blackout','enddate'); diff --git a/nsfw.tgz b/nsfw.tgz index ccddb1e3..c484aa03 100755 Binary files a/nsfw.tgz and b/nsfw.tgz differ