mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-23 04:49:11 -04:00
Remove redundant print statement. rest::reply() does the print so having the extra print statement could lead to problems.
This commit is contained in:
@@ -68,7 +68,7 @@ class Rest_Controller extends Controller {
|
||||
}
|
||||
|
||||
try {
|
||||
print rest::reply(call_user_func(array($handler_class, $handler_method), $request));
|
||||
rest::reply(call_user_func(array($handler_class, $handler_method), $request));
|
||||
} catch (ORM_Validation_Exception $e) {
|
||||
foreach ($e->validation->errors() as $key => $value) {
|
||||
$msgs[] = "$key: $value";
|
||||
|
||||
Reference in New Issue
Block a user