projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
61b0b76
)
More debugging and typo in comment fixed
author
Roland Häder
<roland@mxchange.org>
Mon, 5 Oct 2009 19:25:54 +0000
(19:25 +0000)
committer
Roland Häder
<roland@mxchange.org>
Mon, 5 Oct 2009 19:25:54 +0000
(19:25 +0000)
inc/functions.php
patch
|
blob
|
history
diff --git
a/inc/functions.php
b/inc/functions.php
index b0bc5e475a7ad9337709d7d356e3ee065630c318..8ac91e556901e68696ead6e560043abac61bc4ca 100644
(file)
--- a/
inc/functions.php
+++ b/
inc/functions.php
@@
-238,7
+238,7
@@
function LOAD_TEMPLATE ($template, $return=false, $content=array()) {
// @DEPRECATED Try to rewrite the if() condition
if ($template == 'member_support_form') {
// Support request of a member
// @DEPRECATED Try to rewrite the if() condition
if ($template == 'member_support_form') {
// Support request of a member
- $result = SQL_QUERY_ESC("SELECT
userid, gender, surname, family, email
FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
+ $result = SQL_QUERY_ESC("SELECT
`userid`, `gender`, `surname`, `family`, `email`
FROM `{!_MYSQL_PREFIX!}_user_data` WHERE userid=%s LIMIT 1",
array(getUserId()), __FUNCTION__, __LINE__);
// Is content an array?
array(getUserId()), __FUNCTION__, __LINE__);
// Is content an array?
@@
-250,13
+250,13
@@
function LOAD_TEMPLATE ($template, $return=false, $content=array()) {
$content['gender'] = translateGender($content['gender']);
} else {
// @DEPRECATED
$content['gender'] = translateGender($content['gender']);
} else {
// @DEPRECATED
- // @TODO Fin
e
all templates which are using these direct variables and rewrite them.
+ // @TODO Fin
d
all templates which are using these direct variables and rewrite them.
// @TODO After this step is done, this else-block is history
list($gender, $surname, $family, $email) = SQL_FETCHROW($result);
// Translate gender
$gender = translateGender($gender);
// @TODO After this step is done, this else-block is history
list($gender, $surname, $family, $email) = SQL_FETCHROW($result);
// Translate gender
$gender = translateGender($gender);
- DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("DEPRECATION-WARNING: content is not array
(%s).", gettype($content)
));
+ DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("DEPRECATION-WARNING: content is not array
[%s], template=%s.", gettype($content), $template
));
}
// Free result
}
// Free result