Skip to content

Commit

Permalink
merge -r1430:1431 from branch 1.6 to trunk (bug 443 fixed: new users …
Browse files Browse the repository at this point in the history
…were

never notified to administrators due to a typo).


git-svn-id: http://piwigo.org/svn/trunk@1432 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jul 3, 2006
1 parent 2b6c63c commit 73d9794
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/functions_notification.inc.php
Expand Up @@ -33,7 +33,7 @@
* Execute custom notification query
*
* @param string action ('count' or 'info')
* @param string type of query ('new_comments', 'unvalidated_comments', 'new_elements', 'updated_categories', ' new_users', 'waiting_elements')
* @param string type of query ('new_comments', 'unvalidated_comments', 'new_elements', 'updated_categories', 'new_users', 'waiting_elements')
* @param string start (mysql datetime format)
* @param string end (mysql datetime format)
*
Expand Down Expand Up @@ -80,7 +80,7 @@ function custom_notification_query($action, $type, $start, $end)
AND category_id NOT IN ('.$user['forbidden_categories'].')
;';
break;
case ' new_users':
case 'new_users':
$query = '
FROM '.USER_INFOS_TABLE.'
WHERE registration_date > \''.$start.'\'
Expand Down Expand Up @@ -116,7 +116,7 @@ function custom_notification_query($action, $type, $start, $end)
case 'updated_categories':
$field_id = 'category_id';
break;
case ' new_users':
case 'new_users':
$field_id = 'user_id';
break;
case 'waiting_elements':
Expand Down Expand Up @@ -144,7 +144,7 @@ function custom_notification_query($action, $type, $start, $end)
case 'updated_categories':
$fields = array('category_id');
break;
case ' new_users':
case 'new_users':
$fields = array('user_id');
break;
case 'waiting_elements':
Expand Down

0 comments on commit 73d9794

Please sign in to comment.