Merge pull request #21 from EngineGPDev/Deprecated-preg_match()-Passing-null-to-parameter-#2-($subject)-of-type-string-is-deprecated-in-/enginegp/system/library/acpsystem.php-on-line-105

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in /enginegp/system/library/acpsystem.php on line 105
This commit is contained in:
Sergei Solovev 2023-03-12 20:22:40 +03:00 committed by GitHub
commit f4c3e1327d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,7 @@
public static function valid($val, $type, $preg = '')
{
$val = isset($val) ? $val : '';
switch($type)
{
case 'promo':