[opw-web] Fix string concatenation for acceptance times



commit 81a6536fe82a4e63740434080716679c0f99f5c1
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Tue Dec 29 11:57:28 2015 -0500

    Fix string concatenation for acceptance times

 modules/mod_contract.php     |    4 ++--
 modules/mod_user_profile.php |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/modules/mod_contract.php b/modules/mod_contract.php
index 9defddd..d07e869 100644
--- a/modules/mod_contract.php
+++ b/modules/mod_contract.php
@@ -168,7 +168,7 @@ if ($action == 'edit_student' || $action == 'edit_mentor') {
         $pdf->write(0, "\n");
         $contract = 'E-Signed';
         $contract .= ' by "' . $row['contract_entered_name'] . '"';
-        $contract .= ' on ' . date('M d, Y H:i:s', $row['contract_accepted_time']) + ' UTC';
+        $contract .= ' on ' . date('M d, Y H:i:s', $row['contract_accepted_time']) . ' UTC';
         if ($row['contract_accepted_from'] != '')
             $contract .= ' from ' . str_replace(' ', ' via ', $row['contract_accepted_from']);
         $contract .= ' using ' .$config->site_url;
@@ -315,7 +315,7 @@ if ($action == 'edit_student' || $action == 'edit_mentor') {
          'from_visibility' => $skin->visibility($contract_accepted_from != ''),
          'program_mentor_visibility' => $skin->visibility($is_mentor),
          'program_student_visibility' => $skin->visibility($is_student),
-         'contract_accepted_time' => date('M d, Y H:i:s', $contract_accepted_time) + ' UTC',
+         'contract_accepted_time' => date('M d, Y H:i:s', $contract_accepted_time) . ' UTC',
          'contract_entered_name' => htmlspecialchars($contract_entered_name),
          'contract_accepted_from' => htmlspecialchars(str_replace(' ', $via, $contract_accepted_from)),
          'contract_html' => $contract_html,
diff --git a/modules/mod_user_profile.php b/modules/mod_user_profile.php
index ae908b8..607464d 100644
--- a/modules/mod_user_profile.php
+++ b/modules/mod_user_profile.php
@@ -177,7 +177,7 @@ if ($action == 'view') {
                                   'approved_visibility' => $skin->visibility($program['contract_approved']),
                                   'accepted_visibility' => 
$skin->visibility($program['contract_accepted_time'] != 0),
                                   'not_accepted_visibility' => $skin->visibility(!$is_self && 
!$program['contract_approved'] && $program['contract_accepted_time'] == 0),
-                                  'contract_accepted_time' => date('M d, Y H:i:s', 
$program['contract_accepted_time']) + ' UTC',
+                                  'contract_accepted_time' => date('M d, Y H:i:s', 
$program['contract_accepted_time']) . ' UTC',
                                   'contract_entered_name' => 
htmlspecialchars($program['contract_entered_name']),
                                   'accepted' => $skin->visibility($program['contract_approved']),
                              ));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]