1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

PHP Warning removal.

This commit is contained in:
Cameron
2015-01-28 01:46:49 -08:00
parent 9618771f43
commit fb22dc7b11
3 changed files with 13 additions and 5 deletions

View File

@@ -1600,6 +1600,7 @@ function update_706_to_800($type='')
{ {
if ($just_check) return update_needed('Core search handlers need to be updated.'); if ($just_check) return update_needed('Core search handlers need to be updated.');
$searchPref->removePref('core_handlers/pages')->save(false,true,false); $searchPref->removePref('core_handlers/pages')->save(false,true,false);
e107::getSingleton('e107plugin')->refresh('page');
} }

View File

@@ -286,7 +286,7 @@ class e_chart
} }
public function setOptions($data,$id) public function setOptions($data)
{ {
if($this->provider == 'google' && $data == 'demo') if($this->provider == 'google' && $data == 'demo')

View File

@@ -175,7 +175,9 @@ class db_verify
$this->compare($tb); $this->compare($tb);
} }
foreach($this->sqlLanguageTables as $lng=>$lantab) // language tables. if(!empty($this->sqlLanguageTables)) // language tables.
{
foreach($this->sqlLanguageTables as $lng=>$lantab)
{ {
foreach($dtables as $tb) foreach($dtables as $tb)
{ {
@@ -183,6 +185,7 @@ class db_verify
} }
} }
} }
}
@@ -192,6 +195,10 @@ class db_verify
function compare($selection,$language='') function compare($selection,$language='')
{ {
if(empty($this->tables[$selection]['tables']))
{
return;
}
foreach($this->tables[$selection]['tables'] as $key=>$tbl) foreach($this->tables[$selection]['tables'] as $key=>$tbl)
{ {