aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2007-03-17 11:20:57 +0000
committerrub <rub@piwigo.org>2007-03-17 11:20:57 +0000
commitea27482987c7a5e2ccca59dfe6b295e180b077a6 (patch)
tree5fa51ecebb841b16f2dc745db5fc89a70ad68931 /include
parentf1914f122efe57bd8434fb4e024da92582d1b095 (diff)
Fix problem when admin send email information about category.
git-svn-id: http://piwigo.org/svn/trunk@1917 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_mail.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php
index 92d5ead6a..5f10d2f0a 100644
--- a/include/functions_mail.inc.php
+++ b/include/functions_mail.inc.php
@@ -369,7 +369,8 @@ WHERE
$list = array();
while ($row = mysql_fetch_array($result))
{
- list($row['template'], $row['theme']) = explode('/', $row['template']);
+ $row['template_theme'] = $row['template'];
+ list($row['template'], $row['theme']) = explode('/', $row['template_theme']);
$list[] = $row;
}
}
@@ -387,7 +388,8 @@ FROM
WHERE
'.$conf['user_fields']['email'].' IS NOT NULL
AND group_id = '.$group_id.'
- AND language = \''.$elem['language'].'\'
+ AND language = \''.$elem['language'].'\'
+ AND template = \''.$elem['template_theme'].'\'
;';
$result = pwg_query($query);