Changeset 407 for trunk/admin

Show
Ignore:
Timestamp:
2011-01-01 15:54:56 (1 year ago)
Author:
hannes
Message:

fixes for PHP strict mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/classes/pages/Editmember.php

    r405 r407  
    282282                        } 
    283283                        $_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"'; } 
    285285                        $_col2 .= '>' . $LANG['n/a'] . '</option>'; 
    286286                        $i = 1; 
     
    290290                            else { $j = $i; } 
    291291                            $_col2 .= '<option value="' . $j . '"'; 
    292                             if ($birthday[1] == $j) { $_col2 .=' selected="selected"'; } 
     292                            if (isset($birthday[1]) && $birthday[1] == $j) { $_col2 .=' selected="selected"'; } 
    293293                            $_col2 .= '>' . $j . '</option>'; 
    294294                            $i++; 
    295295                        } 
    296296                        $_col2 .= '</select><select name="birthday2"><option value="00"'; 
    297                         if ($birthday[2] == '00') { 
     297                        if (!isset($birthday[2]) || $birthday[2] == '00') { 
    298298                            $_col2 .= ' selected="selected"'; 
    299299                        } 
     
    305305                            else { $j = $i; } 
    306306                            $_col2 .= '<option value="' . $j . '"'; 
    307                             if ($birthday[2] == $j) { $_col2 .=' selected="selected"'; } 
     307                            if (isset($birthday[2]) && $birthday[2] == $j) { $_col2 .=' selected="selected"'; } 
    308308                            $_col2 .= '>' . $j . '</option>'; 
    309309                            $i++; 
  • trunk/admin/classes/pages/Permissions.php

    r316 r407  
    233233                            } 
    234234                            $q2 = NULL; 
     235                            if (!is_object($_row)) { 
     236                                $_row = new stdClass(); 
     237                            } 
    235238                            if (!isset($_row->r)) { 
    236239                                // nothing set yet, so 'default deny' 
  • trunk/admin/index.php

    r307 r407  
    66 * Description: wrapper file calling all administrative functions 
    77 * 
    8  * Copyright (C) 2007, 2008, 2009 Hannes Schueller 
     8 * Copyright (C) 2007, 2008, 2009, 2011 Hannes Schueller 
    99 * 
    1010 * This program is free software: you can redistribute it and/or modify 
     
    2525// disable output of error messages and warnings 
    2626ini_set('display_errors', 'Off'); 
     27error_reporting(E_ALL | E_STRICT); 
     28 
     29// explicitely set default timezone 
     30date_default_timezone_set('UTC'); 
    2731 
    2832// if install script is present, redirect there