From e0d3d534795fe503e6551ff44340528289d8d57d Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 19 Jun 2016 11:57:01 +0100 Subject: [PATCH] stub mb_ functions --- core/imageboard.pack.php | 2 +- core/util.inc.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 71badf09..19a57ee6 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -813,7 +813,7 @@ class Image { */ // no tags, do a simple search - if($positive_tag_count + $negative_tag_count == 0) { + if($positive_tag_count === 0 && $negative_tag_count === 0) { $query = new Querylet(" SELECT images.* FROM images diff --git a/core/util.inc.php b/core/util.inc.php index 12e72ee5..2b1b6a73 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -412,6 +412,11 @@ function endsWith(/*string*/ $haystack, /*string*/ $needle) { return (substr($haystack, $start) === $needle); } +if(!function_exists("mb_strlen")) { // D: + function mb_strlen($str) {return strlen($str);} + function mb_internal_encoding($enc) {} + function mb_strtolower($str) {return strtolower($str);} +} /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\ * HTML Generation *