Skip to content
Permalink
Browse files

Correct the code generated for php7 compatibility

  • Loading branch information...
lnprieto committed Nov 7, 2019
1 parent a1b5925 commit fae29cf268187c33eab175678bc065a797524b45
Showing with 1 addition and 1 deletion.
  1. +1 −1 lodel/scripts/parser.php
@@ -82,7 +82,7 @@ protected function __construct()
{ // constructor
$this->commands = array ("USE", "MACRO", "FUNC", "LOOP", "IF", "LET", "ELSE", "ELSEIF", "DO", "DOFIRST", "DOLAST", "BEFORE", "AFTER", "ALTERNATIVE", "ESCAPE", "CONTENT", "SWITCH", "CASE", "BLOCK", "TEXT");
$this->commandsline = join('|', $this->commands);
$this->codepieces = array ('sqlfetchassoc' => "mysql_fetch_assoc(%s)", 'sqlquery' => "mysql_query(%s)", 'sqlerror' => "or mymysql_error(%s,%s, __LINE__, __FILE__)", 'sqlfree' => "mysql_free_result(%s)", 'sqlnumrows' => "mysql_num_rows(%s)");
$this->codepieces = array ('sqlfetchassoc' => "mysqli_fetch_assoc(%s)", 'sqlquery' => "mysqli_query(%s, %s)", 'sqlerror' => "or mymysql_error(%s,%s, __LINE__, __FILE__)", 'sqlfree' => "mysqli_free_result(%s)", 'sqlnumrows' => "mysqli_num_rows(%s)");
$this->conditions['sql'] = array('gt'=>'>','lt'=>'<','ge'=>'>=','le'=>'<=','eq'=>"=",'ne'=>'!=', 'and'=>'&&', 'or'=> '||');
$this->joinedconditions['sql'] = join('|',array_keys($this->conditions['sql']));
$this->conditions['php'] = array('gt'=>'>','lt'=>'<','ge'=>'>=','le'=>'<=','eq'=>"==",'ne'=>'!=', 'and'=>'&&', 'or'=> '||', 'sne'=>'!==', 'seq'=>'===');

0 comments on commit fae29cf

Please sign in to comment.
You can’t perform that action at this time.