summaryrefslogtreecommitdiffstats
path: root/pts-core/functions/pts-functions_system_parsing.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-08-09 11:03:56 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-08-09 11:03:56 -0400
commita0f6ef0993050fe2f532a161053d75093296294f (patch)
tree0a25a23d34e32ac729cf41b53a9c11bd1d05b376 /pts-core/functions/pts-functions_system_parsing.php
parent71480af49c27f9bbf76765a045b6c387c4993895 (diff)
downloadphoronix-test-suite-upstream-a0f6ef0993050fe2f532a161053d75093296294f.tar.gz
phoronix-test-suite-upstream-a0f6ef0993050fe2f532a161053d75093296294f.tar.xz
phoronix-test-suite-upstream-a0f6ef0993050fe2f532a161053d75093296294f.zip
pts-core: Don't insert null entries into read_xdpy_monitor_info()
Diffstat (limited to 'pts-core/functions/pts-functions_system_parsing.php')
-rw-r--r--pts-core/functions/pts-functions_system_parsing.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pts-core/functions/pts-functions_system_parsing.php b/pts-core/functions/pts-functions_system_parsing.php
index 32f952c..03f49af 100644
--- a/pts-core/functions/pts-functions_system_parsing.php
+++ b/pts-core/functions/pts-functions_system_parsing.php
@@ -205,7 +205,8 @@ function read_xpdy_monitor_info()
$monitor_info = array();
foreach(explode("\n", $info) as $xdpyinfo_line)
- array_push($monitor_info, $xdpyinfo_line);
+ if(!empty($xdpyinfo_line))
+ array_push($monitor_info, $xdpyinfo_line);
return $monitor_info;
}