Changeset 7ed2a97 in iPeer


Ignore:
Timestamp:
2012-12-07T09:51:02-08:00 (6 years ago)
Author:
Michael Tang <michael.tang@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
1b59ec7
Parents:
71e9a95
Message:

fixed bug in student view of home/index

printed "No evaluations or survey submitted at this time" even

though 5 evaluations/surveys have been submitted and listed under
the submitted section.

the reason was the condition for the message to be printed was

based on $evalEvents which were evaluations that were not submitted,
and not $submitted, which is what it should be because the message
should be printed if no elements are in that array.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/views/home/student_index.ctp

    r71e9a95 r7ed2a97  
    8484</tr>
    8585<?php endforeach; ?>
    86 <?php if (empty($evalEvents)):?>
     86<?php if (empty($submitted)):?>
    8787    <tr><td colspan="5" align="center"><b>No evaluations or survey submitted at this time</b></td></tr>
    8888<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.