Commit 6eecc11d authored by dmorley's avatar dmorley

php7 not php4 duh

parent c1d53479
......@@ -16,8 +16,7 @@ curl_setopt($mv, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($mv, CURLOPT_RETURNTRANSFER, 1);
$outputmv = curl_exec($mv);
curl_close($mv);
preg_match('/number:.*"(.*)"/', $outputmv, $version);
$dmasterversion = $version[1];
$dmasterversion = preg_match('/number:.*"(.*)"/', $outputmv, $version) ? $version[1] : '';
_debug('Diaspora Masterversion', $dmasterversion);
//get master code version for friendica pods
......@@ -27,8 +26,7 @@ curl_setopt($mv, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($mv, CURLOPT_RETURNTRANSFER, 1);
$outputmv = curl_exec($mv);
curl_close($mv);
preg_match('/define.*\'FRIENDICA_VERSION\'.*\'(.*)\'/', $outputmv, $version);
$fmasterversion = $version[1];
$fmasterversion = preg_match('/define.*\'FRIENDICA_VERSION\'.*\'(.*)\'/', $outputmv, $version) ? $version[1] : '';
_debug('Friendica Masterversion: ' . $fmasterversion);
//get master code version for hubzilla pods
......@@ -38,8 +36,7 @@ curl_setopt($mv, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt($mv, CURLOPT_RETURNTRANSFER, 1);
$outputmv = curl_exec($mv);
curl_close($mv);
preg_match('/define.*\'STD_VERSION\'.*\'(.*)\'/', $outputmv, $version);
$hmasterversion = $version[1];
$hmasterversion = preg_match('/define.*\'STD_VERSION\'.*\'(.*)\'/', $outputmv, $version) ? $version[1] : '' ;
_debug('Hubzilla Masterversion: ' . $hmasterversion);
$dbh = pg_connect("dbname=$pgdb user=$pguser password=$pgpass");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment