- if ((!empty($content['wernis_userid'])) && (!isGetRequestParameterSet('mode'))) {
- // Then use an other "mode"
- setGetRequestParameter('mode', 'list');
+ if ((!empty($content['wernis_userid'])) && (!isGetRequestElementSet('do'))) {
+ // Then list all entries
+ setGetRequestElement('do', 'list');
// And load all rows!
// And load all rows!
- $result = SQL_QUERY_ESC("SELECT `id`, `wernis_account`, `wernis_amount`, `wernis_timestamp`, `wernis_type` FROM `{?_MYSQL_PREFIX?}_user_wernis` WHERE `userid`=%s ORDER BY `wernis_timestamp` DESC",
+ $result = SQL_QUERY_ESC("SELECT `id`,`wernis_account`,`wernis_amount`,`wernis_timestamp`,`wernis_type` FROM `{?_MYSQL_PREFIX?}_user_wernis` WHERE `userid`=%s ORDER BY `wernis_timestamp` DESC",
array(getMemberId()), __FILE__, __LINE__);
// Load all rows
array(getMemberId()), __FILE__, __LINE__);
// Load all rows
@@ -96,25+94,25 @@ if ((!isGetRequestParameterSet('mode')) || (getRequestParameter('mode') == 'choo