Skip to content

Commit 99f0f0e

Browse files
author
Phil Sturgeon
committed
Added status => false to the AJAX error message.
1 parent 37e47c7 commit 99f0f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function __construct()
115115
// only allow ajax requests
116116
if( ! $this->input->is_ajax_request() AND config_item('rest_ajax_only') )
117117
{
118-
$this->response( array('error' => 'Only AJAX requests are accepted.'), 505 );
118+
$this->response( array('statuc' => false, 'error' => 'Only AJAX requests are accepted.'), 505 );
119119
}
120120
}
121121

0 commit comments

Comments
 (0)