X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FDirectionDetector%2FDirectionDetectorPlugin.php;h=4a38f390f10a814089abba753c1fef5a5d2aa896;hb=75245552429dc2c27108c763cc39436dde1a08d4;hp=1473c386fac114575fece935555e571881cc38b8;hpb=707b45097428b0dbcdbf9ae2590129080207f254;p=quix0rs-gnu-social.git diff --git a/plugins/DirectionDetector/DirectionDetectorPlugin.php b/plugins/DirectionDetector/DirectionDetectorPlugin.php index 1473c386fa..4a38f390f1 100644 --- a/plugins/DirectionDetector/DirectionDetectorPlugin.php +++ b/plugins/DirectionDetector/DirectionDetectorPlugin.php @@ -81,6 +81,9 @@ class DirectionDetectorPlugin extends Plugin { * @return boolean */ public static function startsWithRTLCharacter($str){ + if (strlen($str) < 1) { + return false; + } if( is_array($cc = self::utf8ToUnicode(mb_substr($str, 0, 1, 'utf-8'))) ) $cc = $cc[0]; else