Issues found in the demo meeting solved

This commit is contained in:
Julio Cesar Laura
2014-10-31 16:37:50 -04:00
parent 3bcee2aff4
commit 410d000205
5 changed files with 13 additions and 10 deletions

View File

@@ -170,7 +170,7 @@ class System
*/
public static function getSysInfo ()
{
$ipe = explode( " ", $_SERVER['SSH_CONNECTION'] );
$ipe = isset($_SERVER['SSH_CONNECTION']) ? explode( " ", $_SERVER['SSH_CONNECTION'] ) : array();
if (getenv( 'HTTP_CLIENT_IP' )) {
$ip = getenv( 'HTTP_CLIENT_IP' );
@@ -215,8 +215,8 @@ class System
$Fields['SYSTEM'] = $distro;
$Fields['PHP'] = phpversion();
$Fields['PM_VERSION'] = self::getVersion();
$Fields['SERVER_ADDR'] = $ipe[2]; //lookup($ipe[2]);
$Fields['IP'] = $ipe[0]; //lookup($ipe[0]);
$Fields['SERVER_ADDR'] = isset($ipe[2]) ? $ipe[2] : ''; //lookup($ipe[2]);
$Fields['IP'] = isset($ipe[0]) ? $ipe[0] : ''; //lookup($ipe[0]);
$Fields['PLUGINS_LIST'] = System::getPlugins();
@@ -823,14 +823,14 @@ class System
public static function verifyRbacSchema ($aOldSchema)
{
$aChanges = array ();
foreach ($aOldSchema as $sTableName => $aColumns) {
if(substr($sTableName, 0,4) != 'RBAC') {
$aChanges[] = $sTableName;
}
}
return $aChanges;
return $aChanges;
}
/**