* [misc] fix empty joins with foreach.

This commit is contained in:
qixinzhi
2025-06-18 06:38:45 +00:00
parent 1fd5e6a5e9
commit 4ba0197d62
+1 -1
View File
@@ -570,7 +570,7 @@ class sqlparser
$tables = array();
$tables[] = $this->parseTable($from, 'from');
foreach($joins as $join) $tables[] = $this->parseTable($join->expr, 'join');
if(!empty($joins)) foreach($joins as $join) $tables[] = $this->parseTable($join->expr, 'join');
return $tables;
}