X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/d831bbec69bfdbd12ce7774be02eb224cfe41d3b..b453301fecc757e4d95191a65b24259e81b53f87:/tweeper.php?ds=sidebyside diff --git a/tweeper.php b/tweeper.php index 5e9d242..f07382b 100644 --- a/tweeper.php +++ b/tweeper.php @@ -285,7 +285,7 @@ class Tweeper { function is_cli() { - return (substr(php_sapi_name(), 0, 3) == 'cli'); + return (php_sapi_name() === "cli"); } function usage($argv)