Skip to content

Commit eab7e35

Browse files
committed
Declares an instance of stdClass
1 parent 1ca3e58 commit eab7e35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ public function __construct()
234234
}
235235
}
236236

237+
$this->rest = new StdClass();
237238
// Load DB if its enabled
238239
if (config_item('rest_database_group') AND (config_item('rest_enable_keys') OR config_item('rest_enable_logging')))
239240
{
@@ -1063,4 +1064,4 @@ protected function _format_jsonp($data = array())
10631064
return $this->get('callback').'('.json_encode($data).')';
10641065
}
10651066

1066-
}
1067+
}

0 commit comments

Comments
 (0)