projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
28a6dc8
)
Assert only if requested so :(
author
Roland Häder
<roland@mxchange.org>
Fri, 23 Mar 2012 20:34:23 +0000
(20:34 +0000)
committer
Roland Häder
<roland@mxchange.org>
Fri, 23 Mar 2012 20:34:23 +0000
(20:34 +0000)
inc/classes/main/class_BaseFrameworkSystem.php
patch
|
blob
|
history
diff --git
a/inc/classes/main/class_BaseFrameworkSystem.php
b/inc/classes/main/class_BaseFrameworkSystem.php
index 255a7f614352ed8c6580a2e32019da200a248296..fed352a4cfb4e371a635529a59b74540a52cac05 100644
(file)
--- 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
$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;
// Return result
return $ret;