Plugin Directory

Changeset 1478385


Ignore:
Timestamp:
08/19/2016 04:29:38 AM (10 years ago)
Author:
safly
Message:

Bug Fix: Some bugfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • safly-cloud-protection/trunk/wrapper.php

    r1478382 r1478385  
    165165function SaFly_Exclude_Keyword($str, $option)
    166166{
    167     $option = explode(',', $option);
    168     foreach ($option as $value) {
    169         $option_tmp = strstr($str, $value);
    170         if ($option_tmp) {
    171             return TRUE;
     167    if (!empty($option)) {
     168        $option = explode(',', $option);
     169        foreach ($option as $value) {
     170            $option_tmp = strstr($str, $value);
     171            if ($option_tmp) {
     172                return TRUE;
     173            }
    172174        }
    173175    }
Note: See TracChangeset for help on using the changeset viewer.