Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
fix for php warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thaddeusmt committed Sep 18, 2011
1 parent 09a36ae commit 69995c0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions protected/views/app/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@

echo $this->renderPartial('_view', array(
'model'=>$model['App'],
'form' =>$form,
'link' => true
)); ?>
<div class="challenges" style="margin:20px 0px;padding:10px;border:1px solid #555;-moz-border-radius:4px;border-radius:4px;background:#efefef url(/images/brain-icon.png) 98% 6px no-repeat;">
<?php
<?php
if(sizeof($model['Challenge']) > 0) { ?>

<h2>Challenges</h2>
<?php foreach($model['Challenge'] as $challenge) {
echo $this->renderPartial('/challenge/_view', array(
Expand All @@ -25,4 +24,4 @@
echo '<p style="float:left;">No challenges found.</p>';
}?>
</div>
<div class="actions" style="margin-bottom:20px;float:right;clear:right;"><a href="/challenge/create/id/<?php echo $model['App']->id?>" style="-moz-border-radius:8px;border-radius:8px;border:1px solid #888;display:inline-block;padding:6px 6px 6px 34px;background:#eee url(/images/add.png) no-repeat 4px 50%;">Add Challenge</a></div>
<div class="actions" style="margin-bottom:20px;float:right;clear:right;"><a href="/challenge/create/id/<?php echo $model['App']->id?>" style="-moz-border-radius:8px;border-radius:8px;border:1px solid #888;display:inline-block;padding:6px 6px 6px 34px;background:#eee url(/images/add.png) no-repeat 4px 50%;">Add Challenge</a></div>

0 comments on commit 69995c0

Please sign in to comment.