Explorar o código

Supress PHP errors because we catch them ourselves.

Thijs Kinkhorst %!s(int64=22) %!d(string=hai) anos
pai
achega
ad6eef9bfb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/options/personal.php

+ 1 - 1
include/options/personal.php

@@ -121,7 +121,7 @@ function load_optpage_data_personal() {
     if ( $tzChangeAllowed ) {
         $TZ_ARRAY[SMPREF_NONE] = _("Same as server");
         $tzfile = SM_PATH . 'locale/timezones.cfg';
-        if(!$fd = fopen($tzfile ,'r')) {
+        if(!$fd = @fopen($tzfile ,'r')) {
             $message = _("Error opening timezone config, contact administrator.");
             plain_error_message($message, $color);
             exit;