Changeset 407 for trunk/admin
- Timestamp:
- 2011-01-01 15:54:56 (1 year ago)
- Files:
-
- trunk/admin/classes/pages/Editmember.php (modified) (3 diffs)
- trunk/admin/classes/pages/Permissions.php (modified) (1 diff)
- trunk/admin/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/admin/classes/pages/Editmember.php
r405 r407 282 282 } 283 283 $_col2 .= '</select><select name="birthday1"><option value="00"'; 284 if ( $birthday[1] == '00') { $_col2 .= ' selected="selected"'; }284 if (!isset($birthday[1]) || $birthday[1] == '00') { $_col2 .= ' selected="selected"'; } 285 285 $_col2 .= '>' . $LANG['n/a'] . '</option>'; 286 286 $i = 1; … … 290 290 else { $j = $i; } 291 291 $_col2 .= '<option value="' . $j . '"'; 292 if ( $birthday[1] == $j) { $_col2 .=' selected="selected"'; }292 if (isset($birthday[1]) && $birthday[1] == $j) { $_col2 .=' selected="selected"'; } 293 293 $_col2 .= '>' . $j . '</option>'; 294 294 $i++; 295 295 } 296 296 $_col2 .= '</select><select name="birthday2"><option value="00"'; 297 if ( $birthday[2] == '00') {297 if (!isset($birthday[2]) || $birthday[2] == '00') { 298 298 $_col2 .= ' selected="selected"'; 299 299 } … … 305 305 else { $j = $i; } 306 306 $_col2 .= '<option value="' . $j . '"'; 307 if ( $birthday[2] == $j) { $_col2 .=' selected="selected"'; }307 if (isset($birthday[2]) && $birthday[2] == $j) { $_col2 .=' selected="selected"'; } 308 308 $_col2 .= '>' . $j . '</option>'; 309 309 $i++; trunk/admin/classes/pages/Permissions.php
r316 r407 233 233 } 234 234 $q2 = NULL; 235 if (!is_object($_row)) { 236 $_row = new stdClass(); 237 } 235 238 if (!isset($_row->r)) { 236 239 // nothing set yet, so 'default deny' trunk/admin/index.php
r307 r407 6 6 * Description: wrapper file calling all administrative functions 7 7 * 8 * Copyright (C) 2007, 2008, 2009 Hannes Schueller8 * Copyright (C) 2007, 2008, 2009, 2011 Hannes Schueller 9 9 * 10 10 * This program is free software: you can redistribute it and/or modify … … 25 25 // disable output of error messages and warnings 26 26 ini_set('display_errors', 'Off'); 27 error_reporting(E_ALL | E_STRICT); 28 29 // explicitely set default timezone 30 date_default_timezone_set('UTC'); 27 31 28 32 // if install script is present, redirect there
