Skip to content

Commit

Permalink
Fixed error when trying to reset all database information
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Ancona Novelo authored and ccraig committed Jul 5, 2010
1 parent 6ae1825 commit e0dd2f9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cpommo/support/util/db.clear.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@

$dbo =& $pommo->_dbo;


foreach($dbo->table as $id => $table) {
if($id == 'config' || $id == 'updates' || $id == 'group_criteria' || $id == 'templates')
foreach($dbo->table as $id => $table)
{
if ($id == 'config' || $id == 'updates' || $id == 'group_criteria'
|| $id == 'templates' || $id == 'subscriber_update')
{
continue;
}

$query = "DELETE FROM ".$table;
$query = 'DELETE FROM '.$table;
if(!$dbo->query($query))
die('ERROR deleting '.$id);

Expand Down

0 comments on commit e0dd2f9

Please sign in to comment.