Commit b1a533e5 authored by Maik Messerschmidt's avatar Maik Messerschmidt
Browse files

Fixed syntax bug (hopefully).

parent a363bc49
......@@ -21,7 +21,7 @@ class ResultController extends Controller
*
* Needed to avoid including the 'data' field, which can get very large.
*/
private rowsForIndex = [
const ROWS_FOR_INDEX = [
"id",
"experiment",
"created_at",
......@@ -35,7 +35,7 @@ class ResultController extends Controller
* @return \Illuminate\Http\Response
*/
public function index() {
$results = Result::select($this->rowsForIndex)
$results = Result::select(self::ROWS_FOR_INDEX)
->where('partial', false)
->get();
......@@ -43,7 +43,7 @@ class ResultController extends Controller
}
public function indexPartial() {
$results = Result::select($this->rowsForIndex)
$results = Result::select(self::ROWS_FOR_INDEX)
->where('partial', true)
->get();
......
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