Commit b5e1fce5 authored by Shakarim Sapa's avatar Shakarim Sapa

- Обновляем записи

parent f538486b
...@@ -54,7 +54,7 @@ class ReplaceController extends Controller ...@@ -54,7 +54,7 @@ class ReplaceController extends Controller
$item->text = str_replace('http', 'https', $item->text); $item->text = str_replace('http', 'https', $item->text);
if ($item->save()===false) if ($item->save()===false)
{ {
throw new ServerErrorHttpException(current(current($item->getErrors()))); throw new ServerErrorHttpException("[".$item->getPrimaryKey()."]".current(current($item->getErrors())));
} }
echo "[".$item->getPrimaryKey()."] ".($i+1)." of ".count($data)." successfully updated\n"; echo "[".$item->getPrimaryKey()."] ".($i+1)." of ".count($data)." successfully updated\n";
} }
......
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