dever 6 years ago
parent
commit
780df19543
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/Api.php

+ 6 - 2
src/Api.php

@@ -206,8 +206,12 @@ class Api
 					$option[$v]['checked'] = true;
 					$option[$v]['checked'] = true;
 				}
 				}
 			} else {
 			} else {
-				$temp = explode('$$$', $v);
+				if (strstr($v, '$$$')) {
-				$option[$total]['checked'] = $temp[1];
+					$temp = explode('$$$', $v);
+					$v = $temp[1];
+				}
+				
+				$option[$total]['checked'] = $v;
 			}
 			}
 		}
 		}
 		return $option;
 		return $option;