From 6647df49b6a8ba93086d9d5b31ea7d32166cdf31 Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 12 Dec 2014 22:43:04 +1100 Subject: [PATCH] php - addresses page, fix '+' to work with no addresses --- pool/page_addrmgt.php | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/pool/page_addrmgt.php b/pool/page_addrmgt.php index 042ad5dc..0ef12d85 100644 --- a/pool/page_addrmgt.php +++ b/pool/page_addrmgt.php @@ -15,6 +15,19 @@ function addrmgtuser($data, $user, $err) $pg .= '%'; $pg .= ''; + # new row template for '+' + $pg .= ''; + $pg .= ''; + $pg .= ""; + $pg .= ''; + $pg .= ''; + $pg .= ""; + $pg .= ''; + $pg .= ''; + $pg .= "0.00%"; + $pg .= ''; + $pg .= "\n"; + $ans = userSettings($user); $offset = 0; @@ -29,25 +42,18 @@ function addrmgtuser($data, $user, $err) else $row = 'odd'; - $pg .= " 0 && $count < 1000) { @@ -116,7 +122,6 @@ function doaddrmgt($data, $user) $ans = userSettings($user, null, $addrarr, $pass); if ($ans['STATUS'] != 'ok') $err = $ans['ERROR']; -#$err = print_r($addrarr, true).$pass; } }