summaryrefslogtreecommitdiff
path: root/inc/infoutils.php
diff options
context:
space:
mode:
authorPiyush Mishra <me@piyushmishra.com>2011-08-20 19:11:52 +0530
committerPiyush Mishra <me@piyushmishra.com>2011-08-20 19:11:52 +0530
commitb838050e5828b5cbf32b9e82ce11c9cc54592809 (patch)
tree8407ac84b8dcb098e8e9f36cea67c93cea101353 /inc/infoutils.php
parentbedfa6abf0ea09be1ea44de0c014d83bd57a7412 (diff)
downloadrpg-b838050e5828b5cbf32b9e82ce11c9cc54592809.tar.gz
rpg-b838050e5828b5cbf32b9e82ce11c9cc54592809.tar.bz2
added new plugins config cascade and added plugin.info.txt
Diffstat (limited to 'inc/infoutils.php')
-rw-r--r--inc/infoutils.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/infoutils.php b/inc/infoutils.php
index 786661d01..f1deec66b 100644
--- a/inc/infoutils.php
+++ b/inc/infoutils.php
@@ -66,8 +66,8 @@ function getVersionData(){
$chunk = fread($fh,2000);
fclose($fh);
$chunk = trim($chunk);
- $chunk = array_pop(explode("\n",$chunk)); //last log line
- $chunk = array_shift(explode("\t",$chunk)); //strip commit msg
+ $chunk = @array_pop(explode("\n",$chunk)); //last log line
+ $chunk = @array_shift(explode("\t",$chunk)); //strip commit msg
$chunk = explode(" ",$chunk);
array_pop($chunk); //strip timezone
$date = date('Y-m-d',array_pop($chunk));