This commit is contained in:
2017-07-31 01:16:46 +02:00
parent decdc7abd7
commit 3f7af298f2
4 changed files with 41 additions and 15 deletions

View File

@@ -25,7 +25,7 @@ class Program extends Model {
}
}
if(($mailComma = strpos($data->email, ',')) !== false) {
if(isset($data->email) && ($mailComma = strpos($data->email, ',')) !== false) {
$this->email = substr($data->email, 0, $mailComma);
}