There were about four changes made to the passchange.php file in the admin folder. No other folders or files were changed.
First change was to move the line that sets the $customers_id variable outside the block and moved it up with the other items getting passed variables and information as follows:
Code:
$passchangeCust = (DB_PREFIX.'customers');
$customers_id = (isset($_GET['cID']) ? zen_db_prepare_input($_GET['cID']) : '');
if (zen_not_null($action)) {
switch ($action) {
Second change was to add an elseif where the passchange_query_raw variable is set as follows:
Code:
if ($searchemail){
$passchange_query_raw = "select customers_id, customers_lastname, customers_firstname, customers_email_address from $passchangeCust WHERE customers_email_address='$searchemail'";
}elseif ($customers_id){
$passchange_query_raw = "select customers_id, customers_lastname, customers_firstname, customers_email_address from $passchangeCust WHERE customers_id='$customers_id'";
}else{
$passchange_query_raw = "select customers_id, customers_lastname, customers_firstname, customers_email_address from $passchangeCust order by customers_id";
}
The other two changes were just to make sure the cID variable is not passed when the users presses the Cancel button.
Bookmarks