Follow-up to bug #11410: Non-functional code cleanup
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 4 Aug 2009 15:18:54 +0000 (15:18 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 4 Aug 2009 15:18:54 +0000 (15:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5759 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_befunc.php

index d10fe2d..3e53180 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
-2009-08-03  Benjamin Mack <benni@typo3.org>
+2009-08-04  Michael Stucki  <michael@typo3.org>
+
+       * Follow-up to bug #11410: Non-functional code cleanup
+
+2009-08-03  Benjamin Mack  <benni@typo3.org>
 
        * Fixed #11628: Frontend Editing does not work with an iframe
 
index 5f22d09..8efb583 100644 (file)
@@ -595,7 +595,7 @@ final class t3lib_BEfunc {
                        $c = count($theRowArray);
 
                        foreach ($theRowArray as $val) {
-                               --$c;
+                               $c--;
                                $output[$c] = array(
                                        'uid' => $val['uid'],
                                        'pid' => $val['pid'],
@@ -642,7 +642,8 @@ final class t3lib_BEfunc {
                                        $clause         // whereClauseMightContainGroupOrderBy
                        );
 
-                       if (($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) {
+                       $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
+                       if ($row) {
                                if ($workspaceOL) {
                                        t3lib_BEfunc::workspaceOL('pages', $row);
                                }