Follow-up of changeset 6889: A '0' field could not be parsed
authorXavier Perseguers <typo3@perseguers.ch>
Tue, 9 Feb 2010 22:07:54 +0000 (22:07 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Tue, 9 Feb 2010 22:07:54 +0000 (22:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6891 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_sqlparser.php

index 6950523..03e2a99 100644 (file)
@@ -761,7 +761,7 @@ class t3lib_sqlparser {
                                        } else {
                                                $stack[$pnt]['distinct'] = $this->nextPart($parseString,'^(distinct[[:space:]]+)');
                                                        // Otherwise, look for regular fieldname:
-                                               if ($fieldName = $this->nextPart($parseString,'^([[:alnum:]\*._]+)(,|[[:space:]]+)'))   {
+                                               if (($fieldName = $this->nextPart($parseString, '^([[:alnum:]\*._]+)(,|[[:space:]]+)')) !== '') {
                                                        $stack[$pnt]['type'] = 'field';
        
                                                                // Explode fieldname into field and table: