Remove notices

This commit is contained in:
champsupertramp
2016-08-30 22:18:19 +08:00
parent 4938b1a4bd
commit 9da31fa799
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ class UM_Enqueue {
$c_url = $ultimatemember->permalinks->get_current_url( get_option('permalink_structure') );
foreach( $exclude as $match ) {
if ( strstr( $c_url, untrailingslashit( $match ) ) ) {
if ( ! empty( $c_url ) && strstr( $c_url, untrailingslashit( $match ) ) ) {
return;
}
}