From: Roland Häder Date: Fri, 23 Mar 2012 20:34:23 +0000 (+0000) Subject: Assert only if requested so :( X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1962cae56d2193733b702a02b0412bcc8364e003;p=core.git Assert only if requested so :( --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 255a7f61..fed352a4 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -2007,8 +2007,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { $ret = (double) $ret; } // END - if - // Has the whole value changed? - assert(($assertMismatch === true) && ('' . $ret . '' != '' . $num . '') && (!is_null($num))); + // Assert only if requested + if ($assertMismatch === true) { + // Has the whole value changed? + assert(($assertMismatch === true)('' . $ret . '' != '' . $num . '') && (!is_null($num))); + } // END - if // Return result return $ret;