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:
commit
f4c3e1327d
|
@ -75,6 +75,7 @@
|
||||||
|
|
||||||
public static function valid($val, $type, $preg = '')
|
public static function valid($val, $type, $preg = '')
|
||||||
{
|
{
|
||||||
|
$val = isset($val) ? $val : '';
|
||||||
switch($type)
|
switch($type)
|
||||||
{
|
{
|
||||||
case 'promo':
|
case 'promo':
|
||||||
|
|
Loading…
Reference in a new issue