diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-08 13:05:18 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-08 13:05:18 -0800 |
commit | f9377bcbd37886f09cfcf72a89f73629825e63dc (patch) | |
tree | 214610bf796d80c85d503a4fa0aea4fd67472ecb /modules/gallery/helpers | |
parent | f9d00aa7429599f46e09b23e8313932ac5e186c3 (diff) |
Suppress errors when checking for readability of /proc/loadavg. Often this file will be protected by openbasedir, and is_readable will trigger an open basedir warning.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery_block.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php index be0f11b8..46742743 100644 --- a/modules/gallery/helpers/gallery_block.php +++ b/modules/gallery/helpers/gallery_block.php @@ -70,7 +70,7 @@ class gallery_block_Core { $block->css_id = "g-platform"; $block->title = t("Platform information"); $block->content = new View("admin_block_platform.html"); - if (is_readable("/proc/loadavg")) { + if (@is_readable("/proc/loadavg")) { $block->content->load_average = join(" ", array_slice(explode(" ", current(file("/proc/loadavg"))), 0, 3)); } else { |