Skip to content

Commit

Permalink
update set_value for name and slug
Browse files Browse the repository at this point in the history
Updated set_value('name', $name) and set_value('slug', $slug) 
to set_value('name', $sample->name) and set_value('slug', $sample->slug).

Otherwise the variables give a PHP error.
  • Loading branch information
jensdeschrijver committed May 5, 2013
1 parent d9bd9e6 commit bc89e60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions views/admin/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<ul>
<li class="<?php echo alternator('', 'even'); ?>">
<label for="name"><?php echo lang('sample:name'); ?> <span>*</span></label>
<div class="input"><?php echo form_input('name', set_value('name', $name), 'class="width-15"'); ?></div>
<div class="input"><?php echo form_input('name', set_value('name', $sample->name), 'class="width-15"'); ?></div>
</li>

<li class="<?php echo alternator('', 'even'); ?>">
<label for="slug"><?php echo lang('sample:slug'); ?> <span>*</span></label>
<div class="input"><?php echo form_input('slug', set_value('slug', $slug), 'class="width-15"'); ?></div>
<div class="input"><?php echo form_input('slug', set_value('slug', $sample->slug), 'class="width-15"'); ?></div>
</li>
</ul>

Expand All @@ -29,4 +29,4 @@

<?php echo form_close(); ?>

</section>
</section>

0 comments on commit bc89e60

Please sign in to comment.