diff --git a/chapter7/admin/authors/index.php b/chapter7/admin/authors/index.php index 5ef72e3..895fca3 100644 --- a/chapter7/admin/authors/index.php +++ b/chapter7/admin/authors/index.php @@ -40,7 +40,7 @@ exit(); } -if (isset($_POST['action']) and $_POST['action'] == 'Edit') +if ((isset($_POST['action'])) && ($_POST['action'] == 'Edit')) { include $_SERVER['DOCUMENT_ROOT'] . '/includes/db.inc.php'; @@ -98,7 +98,7 @@ exit(); } -if (isset($_POST['action']) and $_POST['action'] == 'Delete') +if ((isset($_POST['action'])) && ($_POST['action'] == 'Delete')) { include $_SERVER['DOCUMENT_ROOT'] . '/includes/db.inc.php';