From 1962cae56d2193733b702a02b0412bcc8364e003 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 23 Mar 2012 20:34:23 +0000 Subject: [PATCH] Assert only if requested so :( --- inc/classes/main/class_BaseFrameworkSystem.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.5