Component 'viewFile' is evaluating invalid PHP statements 'foreach($this->_comments as $comment) { if(!isset($i)) $i=1; $bg=($i%2)?'gridRow1':'gridRow2'; $i++; echo '<tr>'; echo '<td class="'.$bg.'">'; echo '<b>'.$comment['userName'].'</b>, wysłano: '.date('j.m.Y, G:i', $comment['send_time']).''; if($this->User->IsAdmin || $this->User->IsModerator) echo ' <a href="./?page=files.viewFile&id='.$this->Request['id'].'&cid='.$comment['id'].'&del=1"><img src="'.$this->Page->Theme->BaseUrl.'/images/icon_delete.gif" OnClick="if(!confirm(\'Czy na pewno chcesz usunąć ten komentarz?\')) return false" alt="usuń" title="usuń" /></a>'; echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<td class="'.$bg.'" style="padding: 6px;">'.$this->Page->emotsDisplay($comment['content']).'</td>'; echo '</tr>'; }' : [Warning] Invalid argument supplied for foreach() (@line 1 in file /data/www/grywaj.eu/libs/prado/TComponent.php(407) : eval()'d code)..
/data/www/grywaj.eu/libs/prado/TComponent.php (415)
0404: try
0405: {
0406: ob_start();
0407: if(eval($statements)===false)
0408: throw new Exception('');
0409: $content=ob_get_contents();
0410: ob_end_clean();
0411: return $content;
0412: }
0413: catch(Exception $e)
0414: {
0415: throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage());
0416: }
0417: }
0418: }
0419:
0420: /**
0421: * TPropertyValue class
0422: *
0423: * TPropertyValue is a utility class that provides static methods
0424: * to convert component property values to specific types.
0425: *
0426: * TPropertyValue is commonly used in component setter methods to ensure
0427: * the new property value is of specific type.
#0 /data/www/grywaj.eu/libs/prado/Web/UI/TControl.php(2202): TComponent->evaluateStatements('foreach($this->...')
#1 /data/www/grywaj.eu/libs/prado/Web/UI/TControl.php(1232): TCompositeLiteral->evaluateDynamicContent()
#2 /data/www/grywaj.eu/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#3 /data/www/grywaj.eu/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#4 /data/www/grywaj.eu/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#5 /data/www/grywaj.eu/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#6 /data/www/grywaj.eu/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#7 /data/www/grywaj.eu/libs/prado/Web/UI/TPage.php(195): TControl->preRenderRecursive()
#8 /data/www/grywaj.eu/libs/prado/Web/UI/TPage.php(173): TPage->processNormalRequest(Object(THtmlWriter))
#9 /data/www/grywaj.eu/libs/prado/Web/Services/TPageService.php(458): TPage->run(Object(THtmlWriter))
#10 /data/www/grywaj.eu/libs/prado/TApplication.php(988): TPageService->run()
#11 /data/www/grywaj.eu/libs/prado/TApplication.php(346): TApplication->runService()
#12 /data/www/grywaj.eu/index.php(37): TApplication->run()
#13 {main}