Fixed bug #16766: Scheduler: Uninitialized variable triggers warning in BE module
authorFrancois Suter <francois.suter@typo3.org>
Fri, 17 Dec 2010 14:17:46 +0000 (14:17 +0000)
committerFrancois Suter <francois.suter@typo3.org>
Fri, 17 Dec 2010 14:17:46 +0000 (14:17 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9828 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/scheduler/mod1/index.php

index 2b2f739..78fcca7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@
 2010-12-17  Francois Suter  <francois.suter@typo3.org>
 
        * Fixed bug #16751: Uninitialized variable triggers exception in Update wizard
+       * Fixed bug #16766: Scheduler: Uninitialized variable triggers warning in BE module
 
 2010-12-17  Jigal van Hemert <jigal@xs4all.nl>
 
index b9c622e..594a0d2 100755 (executable)
@@ -809,7 +809,7 @@ class tx_scheduler_Module extends t3lib_SCbase {
                $cellContent  = t3lib_BEfunc::cshItem($this->cshKey, 'task_start', $this->backPath, '|', false, 'margin-bottom:0px;');
                $cellContent .= '<label for="tceforms-datetimefield-task_start">' . $GLOBALS['LANG']->getLL('label.start') . '</label>';
                $table[$tr][] = $cellContent;
-               $table[$tr][] = '<input name="tx_scheduler[start]" type="text" id="tceforms-datetimefield-task_start" value="' . strftime('%H:%M %d-%m-%Y', $taskInfo['start']) . '" />' .
+               $table[$tr][] = '<input name="tx_scheduler[start]" type="text" id="tceforms-datetimefield-task_start" value="' . ((empty($taskInfo['start'])) ? '' : strftime('%H:%M %d-%m-%Y', $taskInfo['start'])) . '" />' .
                        t3lib_iconWorks::getSpriteIcon(
                                'actions-edit-pick-date',
                                array(