diff --git a/libraries/Advisor.php b/libraries/Advisor.php index 17db830e7c..744ca530d0 100644 --- a/libraries/Advisor.php +++ b/libraries/Advisor.php @@ -441,8 +441,13 @@ class Advisor // Error handling if ($err) { + // Remove PHP 7.2 and newer notice (it's not really interesting for user) throw new Exception( - strip_tags($err) + str_replace( + ' (this will throw an Error in a future version of PHP)', + '', + strip_tags($err) + ) . '
Executed code: $value = ' . htmlspecialchars($expr) . ';' ); }