Changeset 18841 for trunk/www/dch


Ignore:
Timestamp:
04/27/17 15:05:40 (8 years ago)
Author:
Daniela Dorner
Message:
fixed warning
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/dch/shiftinfo.php

    r18681 r18841  
    6161function get_expertinfo($db)
    6262{
    63 
    6463    $query="SELECT username as login, usertitle as name, email, fid5 as mobile, fid7 as skype
    6564        FROM logbook.userfields
     
    7473}
    7574
    76 function userinfo_to_string($userinfo){
     75function userinfo_to_string($userinfo)
     76{
    7777    $s = $userinfo['name'] . "[" .$userinfo['login']."]" . ": <br>";
    7878    $s .= "    email:" . $userinfo['email'] . "<br>";
     
    8282}
    8383
    84 function send_warning_mail_to_user($userinfo){
    85     $msg = "Dear " . $userinfo['name'] . "[".$userinfo['login']."]" ."\n\n";
    86     $msg .= ", please insert your 'Shifthelper Mobile Phone Number' in ";
     84function send_warning_mail_to_user($userinfo, $today)
     85{
     86    $msg = "Dear " . $userinfo['name'] . "[".$userinfo['login']."]," ."\n\n";
     87    $msg .= "please insert your 'Shifthelper Mobile Phone Number' in ";
    8788    $msg .= ' https://www.fact-project.org/logbook/usercp.php?action=profile';
    8889    send_email($today, $msg);
    89 
    9090}
    9191
     
    110110        echo "<li>".userinfo_to_string($userinfo)."</li>\n";
    111111        if (!$userinfo['mobile'])
    112             send_warning_mail_to_user($userinfo);
     112            send_warning_mail_to_user($userinfo, $today);
    113113    }
    114114}
Note: See TracChangeset for help on using the changeset viewer.