Commit 9b3fa747 authored by metzlerd's avatar metzlerd
Browse files

Notice fix.

parent 61366417
......@@ -192,7 +192,8 @@ class FrxBlockEditor {
* Return the tokens for the block.
*/
public function tokens() {
// skip non-sql blocks
if (!isset($this->block['file'])) return array();
$block = Frx::RepoMan()->sqlBlock($this->provider, $this->block['file']);
$tokens = @$block['tokens'];
$c_idx = array_search('current_user', $tokens);
......
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