Skip to content

Commit

Permalink
wiring in the AppUI object so it stops bombing out
Browse files Browse the repository at this point in the history
  • Loading branch information
caseysoftware committed Jun 14, 2014
1 parent f608be4 commit f2fa865
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions holiday.php
Expand Up @@ -3,7 +3,7 @@
require_once 'PEAR/Holidays.php';
require_once "holiday_functions.class.php";

$perms = &$AppUI->acl();
$AppUI = is_object($AppUI) ? $AppUI : new w2p_Core_CAppUI();

$user_id = w2PgetParam($_REQUEST, 'user_id', null);
if (!is_null( $user_id )) {
Expand Down Expand Up @@ -251,9 +251,6 @@ function submitWorkingDays(form) {
<?php
$users = w2PgetUsersList();
foreach ($users as $id => $user) {
if (!$perms->isUserPermitted($user['user_id'])) {
continue;
}
$selected = $user['user_id'] == $user_id ? ' selected="selected"' : '';
echo '<option value="' . $user['user_id'] . '"' . $selected . '>' . $user['contact_first_name'] . ' ' . $user['contact_last_name'] . '</option>';
}
Expand Down

0 comments on commit f2fa865

Please sign in to comment.