improvement: include/admin/images.inc.php

Discussion corner for Developers of Serendipity.
Post Reply
twobee
Regular
Posts: 19
Joined: Thu May 18, 2006 8:02 pm
Location: Berlin
Contact:

improvement: include/admin/images.inc.php

Post by twobee »

On line 18 replace

Code: Select all

              @set_time_limit(0);
with

Code: Select all

        if (function_exists('set_time_limit')
          {
              @set_time_limit(0);
          }
Why? If in the php.ini set_time_limit() is listed in disable_functions the old version _will_ return an error. ;)


regards, twobee.
-=( Experienced Apache 2.0.x Administrator )=-
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: improvement: include/admin/images.inc.php

Post by garvinhicking »

Hi!

Good suggestion, committed to SVN. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply