Changeset 1596

Show
Ignore:
Timestamp:
04/17/08 22:54:17 (3 months ago)
Author:
Neal
Message:

Added a workaround to deal with sys_getloadavg returning false (the PHP documentation doesn't mention anything about it).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/punbb-1.3-dev/upload/admin/index.php

    r1472 r1596  
    8080 
    8181// Get the server load averages (if possible) 
    82 if (function_exists('sys_getloadavg')
     82if (function_exists('sys_getloadavg') && is_array(sys_getloadavg())
    8383{ 
    8484        $load_averages = sys_getloadavg();