Hi lhungil,
thanks for the advice. I sometimes got the error but dunno where it was generated. Just to be sure not to do stupid changes could you please confirm that the following code is correct:
Unmodified file customers_reward_points.php
PHP Code:
switch ($action) //line 317
{ //line 318
case 'edit': //line 319
case 'update':
Modified:
PHP Code:
if(zen_not_null($current_customer)) { //line 316 added by lhungil
switch ($action) //line 317
{ //line 318
case 'edit': //line 319
case 'update':
Then in the end:
Unmodified
PHP Code:
if((zen_not_null($heading)) && (zen_not_null($contents))) //line 381
{ //line 382
echo ' <td width="25%" valign="top">' . "\n"; //line 383
modified:
PHP Code:
} else { echo '<div class="alert">No Customer (or invalid customer) selected. No action performed!</div>'; } //line 380
if((zen_not_null($heading)) && (zen_not_null($contents))) //line 381
{ //line 382
echo ' <td width="25%" valign="top">' . "\n"; //line 383
Sorry but that "around line xxx" put me in danger zone, i prefer to be sure before making any modification
(i know it for dummy but be patient
)