cvs: pear /LiveUser_Admin/docs/examples/example1 index.php
| From: | Lukas Smith | Date: | Wed, 17 Aug 2005 11:37:46 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/docs/examples/example1 index.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-34058@lists.php.net to get a copy of this message | ||
lsmith Wed Aug 17 07:37:46 2005 EDT
Modified files:
/pear/LiveUser_Admin/docs/examples/example1 index.php
Log:
- supress errors due to deleting non existant tables
http://cvs.php.net/diff.php/pear/LiveUser_Admin/docs/examples/example1/index.php?r1=1.1&r2=1.2&ty=u
Index: pear/LiveUser_Admin/docs/examples/example1/index.php
diff -u pear/LiveUser_Admin/docs/examples/example1/index.php:1.1
pear/LiveUser_Admin/docs/examples/example1/index.php:1.2
--- pear/LiveUser_Admin/docs/examples/example1/index.php:1.1 Sat Aug 13 17:33:58 2005
+++ pear/LiveUser_Admin/docs/examples/example1/index.php Wed Aug 17 07:37:46 2005
@@ -72,7 +72,8 @@
?>
So that these test will run you have to have <a href="http://pear.php.net/package/Var_Dump">Var_Dump</a>
installed<br /><br />
<?php
-if (isset($_GET['del'])) {
+if (isset($_GET['del'])) {
+ $db->expectError(MDB2_ERROR_NOSUCHTABLE);
$db->query('DELETE FROM liveuser_applications');
$db->query('DROP TABLE liveuser_applications_seq');
$db->query('DELETE FROM liveuser_area_admin_areas');
@@ -95,6 +96,7 @@
$db->query('DROP TABLE liveuser_users_seq');
$db->query('DELETE FROM liveuser_translations');
$db->query('DROP TABLE liveuser_translations_seq');
+ $db->popExpect();
echo 'Reseted the database';
exit;
} else {