Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Commit

Permalink
Fix PHP error typo for sprintf()
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisjacquet committed Aug 21, 2016
1 parent ce9a56f commit 675d48d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion includes/Messages.fnc.php
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ function _getSentMessageReadPercent( $msg_id )
}
else
{
$read_label = strpintf( dgettext( 'Messaging', '%s Read' ), $read_percent . '%' );
$read_label = sprintf( dgettext( 'Messaging', '%s Read' ), $read_percent . '%' );
}

return $read_label;
Expand Down
14 changes: 7 additions & 7 deletions includes/Write.fnc.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ function GetAllowedRecipientsKeys( $profile )
}

//return array( 'student_id', 'staff_id', 'course_period_id', 'grade_id', 'profile_id' );

return array();
}

Expand Down Expand Up @@ -487,12 +487,12 @@ function _getParentAllowedTeachersRecipients()
{
// Get Parent Students for current school.
$students_RET = DBGet( DBQuery( "SELECT sju.STUDENT_ID
FROM STUDENTS s,STUDENTS_JOIN_USERS sju,STUDENT_ENROLLMENT se
WHERE s.STUDENT_ID=sju.STUDENT_ID
AND sju.STAFF_ID='" . User( 'STAFF_ID' ) . "'
FROM STUDENTS s,STUDENTS_JOIN_USERS sju,STUDENT_ENROLLMENT se
WHERE s.STUDENT_ID=sju.STUDENT_ID
AND sju.STAFF_ID='" . User( 'STAFF_ID' ) . "'
AND se.SYEAR='" . UserSyear() . "'
AND se.SCHOOL_ID ='" . UserSchool() . "'
AND se.STUDENT_ID=sju.STUDENT_ID
AND se.STUDENT_ID=sju.STUDENT_ID
AND ('" . DBDate() . "'>=se.START_DATE
AND ('" . DBDate() . "'<=se.END_DATE
OR se.END_DATE IS NULL ) )" ) );
Expand Down Expand Up @@ -520,7 +520,7 @@ function _getTeacherAllowedParentsRecipients()
if ( ! $allowed_ids )
{
$allowed_ids_RET = DBGet( DBQuery( "SELECT array_agg(sju.STAFF_ID) as ALLOWED_IDS
FROM STUDENTS_JOIN_USERS sju,STUDENT_ENROLLMENT sem,SCHEDULE sch
FROM STUDENTS_JOIN_USERS sju,STUDENT_ENROLLMENT sem,SCHEDULE sch
WHERE sem.STUDENT_ID=sju.STUDENT_ID
AND sem.SYEAR='" . UserSyear() . "'
AND sem.SCHOOL_ID='" . UserSchool() . "'
Expand Down Expand Up @@ -612,7 +612,7 @@ function GetReplySubjectMessage( $msg_id )

$message = $data['message'];

return array( 'subject' => $subject, 'message' => $message );
return array( 'subject' => $subject, 'message' => $message );
}


Expand Down

0 comments on commit 675d48d

Please sign in to comment.