Commit ade93e04 by 冷斌

fix bug

parent 560bc962
...@@ -1688,8 +1688,8 @@ class ZyServiceModel ...@@ -1688,8 +1688,8 @@ class ZyServiceModel
unset($school_id); unset($school_id);
$utype = $type == 'course_line' ? 'CourseLine' : $type; $utype = $type == 'course_line' ? 'CourseLine' : $type;
$old_proportion = model('Xdata')->get("admin_Config:divideInto" . ucwords($utype) . "Config"); $old_proportion = model('Xdata')->get("admin_Config:divideInto" . ucwords($utype) . "Config");
var_dump($old_proportion); //$old_proportion = array_filter(explode(':', $old_proportion[$type]));
$old_proportion = array_filter(explode(':', $old_proportion[$type])); $old_proportion = explode(':', $old_proportion[$type]);
if (empty($old_proportion)) { if (empty($old_proportion)) {
return 1; return 1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment