Followup for #10351: A few more whitespace cleanups in t3lib_frontendedit
authorJeff Segars <jsegars@alumni.rice.edu>
Fri, 6 Feb 2009 19:16:51 +0000 (19:16 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Fri, 6 Feb 2009 19:16:51 +0000 (19:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4962 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_frontendedit.php

index 4c41d65..21d0c81 100644 (file)
@@ -234,7 +234,7 @@ class t3lib_frontendedit {
                $editUid = $dataArray['_LOCALIZED_UID'] ? $dataArray['_LOCALIZED_UID'] : $currentRecordUID;
 
                        // Edit icons imply that the editing action is generally allowed, assuming page and content element permissions permit it.
-               if(!array_key_exists('allow', $conf)) {
+               if (!array_key_exists('allow', $conf)) {
                        $conf['allow'] = 'edit';
                }
 
@@ -452,7 +452,7 @@ class t3lib_frontendedit {
                                }
                        }
                                // Perform the requested editing command.
-                       if(is_callable(array($this, $cmd))) {
+                       if (is_callable(array($this, $cmd))) {
                                $this->$cmd($table, $uid);
                        } else {
                                throw new UnexpectedValueException(
@@ -665,7 +665,7 @@ class t3lib_frontendedit {
 
                if ($table=='pages') {
                                // 2 = permission to edit the page
-                       if($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->doesUserHaveAccess($dataArray, 2)) {
+                       if ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->doesUserHaveAccess($dataArray, 2)) {
                                $mayEdit = true;
                        }
                } else {