@@ -51,7 +51,7 @@ |
||
| 51 | 51 | |
| 52 | 52 | $DATA->set_page_metadata($this_page, 'title', $pagetitle); |
| 53 | 53 | |
| 54 | - $args = [ |
|
| 54 | + $args = [ |
|
| 55 | 55 | 's' => $searchstring, |
| 56 | 56 | 'p' => $pagenum, |
| 57 | 57 | 'pop' => 1, |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | class UtilityTest extends UnitTestCase { |
| 14 | 14 | public function testVerpEnvelopeSenderCanCreateStandardSender() { |
| 15 | 15 | $sender = twfy_verp_envelope_sender('[email protected]'); |
| 16 | - $expected_sender = 'twfy+aperson=a.nother.dom@' + EMAILDOMAIN; |
|
| 16 | + $expected_sender = 'twfy+aperson=a.nother.dom@' +EMAILDOMAIN; |
|
| 17 | 17 | $this->assertEqual($sender, $expected_sender, 'verp_envelope_sender can create a sender for a standard address'); |
| 18 | 18 | } |
| 19 | 19 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $THISPAGE = new \MySociety\TheyWorkForYou\Url($this_page); |
| 52 | 52 | |
| 53 | 53 | $LOGINURL = new \MySociety\TheyWorkForYou\Url('userlogin'); |
| 54 | - $LOGINURL->insert(['ret' => $THISPAGE->generate('none') ]); |
|
| 54 | + $LOGINURL->insert(['ret' => $THISPAGE->generate('none')]); |
|
| 55 | 55 | |
| 56 | 56 | $text = "<a href=\"" . $LOGINURL->generate() . '">' . gettext('You’d better sign in!') . '</a>'; |
| 57 | 57 | } else { |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | if (is_string($message)) { |
| 392 | 392 | // Sometimes we're just sending a single line to this function |
| 393 | 393 | // rather like the bigger array... |
| 394 | - $message = [ |
|
| 394 | + $message = [ |
|
| 395 | 395 | 'text' => $message, |
| 396 | 396 | ]; |
| 397 | 397 | } |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | if (!isset($page_errors)) { |
| 406 | 406 | $page_errors = []; |
| 407 | 407 | } |
| 408 | - $page_errors[] = $message; |
|
| 408 | + $page_errors[] = $message; |
|
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | if ($fatal) { |
@@ -811,7 +811,7 @@ discard block |
||
| 811 | 811 | public function glossary_atoz(&$GLOSSARY) { |
| 812 | 812 | // Print out a nice list of lettered links to glossary pages |
| 813 | 813 | |
| 814 | - $letters = []; |
|
| 814 | + $letters = []; |
|
| 815 | 815 | |
| 816 | 816 | foreach ($GLOSSARY->alphabet as $letter => $eps) { |
| 817 | 817 | // if we're writing out the current letter (list or item) |
@@ -1109,7 +1109,7 @@ discard block |
||
| 1109 | 1109 | |
| 1110 | 1110 | $body = trim_characters($report['body'], 0, 40); |
| 1111 | 1111 | |
| 1112 | - $tabledata['rows'][] = [ |
|
| 1112 | + $tabledata['rows'][] = [ |
|
| 1113 | 1113 | _htmlentities($report['firstname'] . ' ' . $report['lastname']), |
| 1114 | 1114 | _htmlentities($body), |
| 1115 | 1115 | $report['reported'], |
@@ -1191,11 +1191,11 @@ discard block |
||
| 1191 | 1191 | // Returns HTML suitable for putting in the sidebar on Admin pages. |
| 1192 | 1192 | global $this_page, $DATA; |
| 1193 | 1193 | |
| 1194 | - $pages = ['admin_home', |
|
| 1194 | + $pages = ['admin_home', |
|
| 1195 | 1195 | 'admin_comments', 'admin_searchlogs', 'admin_popularsearches', 'admin_failedsearches', |
| 1196 | 1196 | 'alert_stats', 'admin_statistics', 'admin_reportstats', |
| 1197 | 1197 | 'admin_commentreports', 'admin_glossary', 'admin_glossary_pending', 'admin_badusers', |
| 1198 | - 'admin_profile_message', 'admin_photos', 'admin_mpurls', 'admin_policies', 'admin_banner', 'admin_announcement','admin_featured', 'admin_topics', |
|
| 1198 | + 'admin_profile_message', 'admin_photos', 'admin_mpurls', 'admin_policies', 'admin_banner', 'admin_announcement', 'admin_featured', 'admin_topics', |
|
| 1199 | 1199 | 'admin_wikipedia', |
| 1200 | 1200 | ]; |
| 1201 | 1201 | |
@@ -26,12 +26,12 @@ discard block |
||
| 26 | 26 | public $firstname = ''; |
| 27 | 27 | public $lastname = ''; |
| 28 | 28 | public $body = ''; |
| 29 | - public $reported = null; // datetime |
|
| 30 | - public $resolved = null; // datetime |
|
| 31 | - public $resolvedby = ''; // user_id |
|
| 32 | - public $locked = null; // datetime |
|
| 33 | - public $lockedby = ''; // user_id |
|
| 34 | - public $upheld = ''; // boolean |
|
| 29 | + public $reported = null; // datetime |
|
| 30 | + public $resolved = null; // datetime |
|
| 31 | + public $resolvedby = ''; // user_id |
|
| 32 | + public $locked = null; // datetime |
|
| 33 | + public $lockedby = ''; // user_id |
|
| 34 | + public $upheld = ''; // boolean |
|
| 35 | 35 | |
| 36 | 36 | // If the user was logged in, this will be set: |
| 37 | 37 | public $user_id = ''; |
@@ -256,19 +256,19 @@ discard block |
||
| 256 | 256 | |
| 257 | 257 | if ($q->success()) { |
| 258 | 258 | // Inserted OK, so set up this object's variables. |
| 259 | - $this->report_id = $q->insert_id(); |
|
| 260 | - $this->comment_id = $COMMENT->comment_id(); |
|
| 261 | - $this->body = $body; |
|
| 262 | - $this->reported = $time; |
|
| 259 | + $this->report_id = $q->insert_id(); |
|
| 260 | + $this->comment_id = $COMMENT->comment_id(); |
|
| 261 | + $this->body = $body; |
|
| 262 | + $this->reported = $time; |
|
| 263 | 263 | |
| 264 | 264 | if ($THEUSER->isloggedin()) { |
| 265 | - $this->user_id = $THEUSER->user_id(); |
|
| 265 | + $this->user_id = $THEUSER->user_id(); |
|
| 266 | 266 | $this->firstname = $THEUSER->firstname(); |
| 267 | 267 | $this->lastname = $THEUSER->lastname(); |
| 268 | 268 | } else { |
| 269 | - $this->email = $reportdata['email']; |
|
| 270 | - $this->firstname = $reportdata['firstname']; |
|
| 271 | - $this->lastname = $reportdata['lastname']; |
|
| 269 | + $this->email = $reportdata['email']; |
|
| 270 | + $this->firstname = $reportdata['firstname']; |
|
| 271 | + $this->lastname = $reportdata['lastname']; |
|
| 272 | 272 | } |
| 273 | 273 | |
| 274 | 274 | |
@@ -300,11 +300,11 @@ discard block |
||
| 300 | 300 | $email = $this->email(); |
| 301 | 301 | } |
| 302 | 302 | |
| 303 | - $data = [ |
|
| 303 | + $data = [ |
|
| 304 | 304 | 'to' => $email, |
| 305 | 305 | 'template' => 'report_acknowledge', |
| 306 | 306 | ]; |
| 307 | - $merge = [ |
|
| 307 | + $merge = [ |
|
| 308 | 308 | 'COMMENTURL' => "https://" . DOMAIN . $COMMENT->url(), |
| 309 | 309 | 'REPORTBODY' => strip_tags($this->body()), |
| 310 | 310 | ]; |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | $data = []; |
| 327 | 327 | |
| 328 | 328 | if (is_numeric($this->report_id)) { |
| 329 | - $data = [ |
|
| 329 | + $data = [ |
|
| 330 | 330 | 'report_id' => $this->report_id(), |
| 331 | 331 | 'comment_id' => $this->comment_id(), |
| 332 | 332 | 'user_id' => $this->user_id(), |
@@ -1430,7 +1430,8 @@ discard block |
||
| 1430 | 1430 | // not-logged-in users. |
| 1431 | 1431 | |
| 1432 | 1432 | $this->postcode = $pc; |
| 1433 | - if (!headers_sent()) { // if in debug mode |
|
| 1433 | + if (!headers_sent()) { |
|
| 1434 | +// if in debug mode |
|
| 1434 | 1435 | setcookie(POSTCODE_COOKIE, $pc, time() + 7 * 86400, "/", COOKIEDOMAIN); |
| 1435 | 1436 | } |
| 1436 | 1437 | |
@@ -1438,7 +1439,8 @@ discard block |
||
| 1438 | 1439 | } |
| 1439 | 1440 | |
| 1440 | 1441 | public function unset_postcode_cookie() { |
| 1441 | - if (!headers_sent()) { // if in debug mode |
|
| 1442 | + if (!headers_sent()) { |
|
| 1443 | +// if in debug mode |
|
| 1442 | 1444 | setcookie(POSTCODE_COOKIE, '', time() - 3600, '/', COOKIEDOMAIN); |
| 1443 | 1445 | } |
| 1444 | 1446 | } |
@@ -55,23 +55,23 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | |
| 57 | 57 | class USER { |
| 58 | - public $user_id = "0"; // So we have an ID for non-logged in users reporting comments etc. |
|
| 59 | - public $firstname = "Guest"; // So we have something to print for non-logged in users. |
|
| 58 | + public $user_id = "0"; // So we have an ID for non-logged in users reporting comments etc. |
|
| 59 | + public $firstname = "Guest"; // So we have something to print for non-logged in users. |
|
| 60 | 60 | public $lastname = ""; |
| 61 | - public $password = ""; // This will be a hashed version of a plaintext pw. |
|
| 61 | + public $password = ""; // This will be a hashed version of a plaintext pw. |
|
| 62 | 62 | public $email = ""; |
| 63 | 63 | public $postcode = ""; |
| 64 | 64 | public $url = ""; |
| 65 | - public $lastvisit = ""; // Last time the logged-in user loaded a page (GMT). |
|
| 65 | + public $lastvisit = ""; // Last time the logged-in user loaded a page (GMT). |
|
| 66 | 66 | public $registrationtime = ""; // When they registered (GMT). |
| 67 | - public $registrationip = ""; // Where they registered from. |
|
| 68 | - public $optin = ""; // Int containing multiple binary opt-ins. (See top of User.php) |
|
| 69 | - public $deleted = ""; // User can't log in or have their info displayed. |
|
| 70 | - public $confirmed = ''; // boolean - Has the user confirmed via email? |
|
| 71 | - public $facebook_id = ''; // Facebook ID for users who login with FB |
|
| 72 | - public $facebook_token = ''; // Facebook token for users who login with FB |
|
| 73 | - public $can_annotate = false; // Can the user add annotations |
|
| 74 | - public $organisation = ''; // The organisation the user belongs to |
|
| 67 | + public $registrationip = ""; // Where they registered from. |
|
| 68 | + public $optin = ""; // Int containing multiple binary opt-ins. (See top of User.php) |
|
| 69 | + public $deleted = ""; // User can't log in or have their info displayed. |
|
| 70 | + public $confirmed = ''; // boolean - Has the user confirmed via email? |
|
| 71 | + public $facebook_id = ''; // Facebook ID for users who login with FB |
|
| 72 | + public $facebook_token = ''; // Facebook token for users who login with FB |
|
| 73 | + public $can_annotate = false; // Can the user add annotations |
|
| 74 | + public $organisation = ''; // The organisation the user belongs to |
|
| 75 | 75 | // Don't use the status to check access privileges - use the is_able_to() function. |
| 76 | 76 | public $status = "Viewer"; |
| 77 | 77 | |
@@ -324,12 +324,12 @@ discard block |
||
| 324 | 324 | $confirmurl = 'https://' . DOMAIN . '/E/' . $urltoken; |
| 325 | 325 | |
| 326 | 326 | // Arrays we need to send a templated email. |
| 327 | - $data = [ |
|
| 327 | + $data = [ |
|
| 328 | 328 | 'to' => $details['email'], |
| 329 | 329 | 'template' => 'email_confirmation', |
| 330 | 330 | ]; |
| 331 | 331 | |
| 332 | - $merge = [ |
|
| 332 | + $merge = [ |
|
| 333 | 333 | 'CONFIRMURL' => $confirmurl, |
| 334 | 334 | ]; |
| 335 | 335 | |
@@ -367,12 +367,12 @@ discard block |
||
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | // Arrays we need to send a templated email. |
| 370 | - $data = [ |
|
| 370 | + $data = [ |
|
| 371 | 371 | 'to' => $details['email'], |
| 372 | 372 | 'template' => 'join_confirmation', |
| 373 | 373 | ]; |
| 374 | 374 | |
| 375 | - $merge = [ |
|
| 375 | + $merge = [ |
|
| 376 | 376 | 'CONFIRMURL' => $confirmurl, |
| 377 | 377 | ]; |
| 378 | 378 | |
@@ -438,13 +438,13 @@ discard block |
||
| 438 | 438 | // Generates the password .... |
| 439 | 439 | for ($x = 0; $x < 6;) { |
| 440 | 440 | $y = rand(1, 1000); |
| 441 | - if($y > 350 && $y < 601) { |
|
| 441 | + if ($y > 350 && $y < 601) { |
|
| 442 | 442 | $d = chr(rand(48, 57)); |
| 443 | 443 | } |
| 444 | - if($y < 351) { |
|
| 444 | + if ($y < 351) { |
|
| 445 | 445 | $d = chr(rand(65, 90)); |
| 446 | 446 | } |
| 447 | - if($y > 600) { |
|
| 447 | + if ($y > 600) { |
|
| 448 | 448 | $d = chr(rand(97, 122)); |
| 449 | 449 | } |
| 450 | 450 | if ($d != $o && !preg_match('#[O01lI]#', $d)) { |
@@ -504,14 +504,14 @@ discard block |
||
| 504 | 504 | return false; |
| 505 | 505 | } |
| 506 | 506 | |
| 507 | - $data = [ |
|
| 507 | + $data = [ |
|
| 508 | 508 | 'to' => $this->email(), |
| 509 | 509 | 'template' => 'new_password', |
| 510 | 510 | ]; |
| 511 | 511 | |
| 512 | 512 | $URL = new \MySociety\TheyWorkForYou\Url("userlogin"); |
| 513 | 513 | |
| 514 | - $merge = [ |
|
| 514 | + $merge = [ |
|
| 515 | 515 | 'EMAIL' => $this->email(), |
| 516 | 516 | 'LOGINURL' => "https://" . DOMAIN . $URL->generate(), |
| 517 | 517 | 'PASSWORD' => $this->password(), |
@@ -687,7 +687,7 @@ discard block |
||
| 687 | 687 | // Maybe there's a way of fetching these from the DB, |
| 688 | 688 | // so we don't duplicate them here...? |
| 689 | 689 | |
| 690 | - $statuses = ["Viewer", "User", "Moderator", "Administrator", "Superuser"]; |
|
| 690 | + $statuses = ["Viewer", "User", "Moderator", "Administrator", "Superuser"]; |
|
| 691 | 691 | |
| 692 | 692 | return $statuses; |
| 693 | 693 | |
@@ -1031,7 +1031,7 @@ discard block |
||
| 1031 | 1031 | $date_now = gmdate("Y-m-d H:i:s"); |
| 1032 | 1032 | $this->db->query( |
| 1033 | 1033 | "UPDATE users SET lastvisit = :lastvisit WHERE user_id = :user_id", |
| 1034 | - [ ':lastvisit' => $date_now, ':user_id' => $this->user_id() ] |
|
| 1034 | + [':lastvisit' => $date_now, ':user_id' => $this->user_id()] |
|
| 1035 | 1035 | ); |
| 1036 | 1036 | |
| 1037 | 1037 | $this->lastvisit = $date_now; |
@@ -1427,7 +1427,7 @@ discard block |
||
| 1427 | 1427 | |
| 1428 | 1428 | twfy_debug("THEUSER", "User with ID found to confirm: " . $this->user_id()); |
| 1429 | 1429 | // We'll need these to be set before logging the user in. |
| 1430 | - $this->email = $q['email']; |
|
| 1430 | + $this->email = $q['email']; |
|
| 1431 | 1431 | |
| 1432 | 1432 | // Set that they're confirmed in the DB. |
| 1433 | 1433 | $r = $this->db->query("UPDATE users |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | |
| 67 | 67 | */ |
| 68 | 68 | |
| 69 | -$page = [ |
|
| 69 | +$page = [ |
|
| 70 | 70 | |
| 71 | 71 | // Things used on EVERY page, unless overridden for a page: |
| 72 | 72 | 'default' => [ |
@@ -1295,7 +1295,7 @@ discard block |
||
| 1295 | 1295 | // The text displayed on the page itself will also be this, |
| 1296 | 1296 | // UNLESS the section has a 'heading', in which case that's used instead. |
| 1297 | 1297 | |
| 1298 | -$section = [ |
|
| 1298 | +$section = [ |
|
| 1299 | 1299 | |
| 1300 | 1300 | |
| 1301 | 1301 | 'about' => [ |
@@ -20,39 +20,39 @@ discard block |
||
| 20 | 20 | <p class="person-header__about__position"> |
| 21 | 21 | <?php |
| 22 | 22 | $lat = $latest_membership['party'] == 'Bishop' ? '' : $latest_membership['party']; |
| 23 | - if ($latest_membership['current']) { |
|
| 24 | - if ($latest_membership['constituency']) { |
|
| 25 | - # First %s is party, second is type of rep (e.g. MS), third is constituency name |
|
| 26 | - printf( |
|
| 27 | - gettext('<span class="person-header__about__position__role">%s %s</span> for <span class="person-header__about__position__constituency">%s</span>'), |
|
| 28 | - $lat, |
|
| 29 | - $latest_membership['rep_name'], |
|
| 30 | - $latest_membership['constituency'] |
|
| 31 | - ); |
|
| 32 | - } else { |
|
| 33 | - printf( |
|
| 34 | - gettext('<span class="person-header__about__position__role">%s %s</span>'), |
|
| 35 | - $lat, |
|
| 36 | - $latest_membership['rep_name'] |
|
| 37 | - ); |
|
| 38 | - } |
|
| 39 | - } else { |
|
| 40 | - if ($latest_membership['constituency']) { |
|
| 41 | - printf( |
|
| 42 | - gettext('<span class="person-header__about__position__role">Former %s %s</span> for <span class="person-header__about__position__constituency">%s</span>'), |
|
| 43 | - $lat, |
|
| 44 | - $latest_membership['rep_name'], |
|
| 45 | - $latest_membership['constituency'] |
|
| 46 | - ); |
|
| 47 | - } else { |
|
| 48 | - printf( |
|
| 49 | - gettext('<span class="person-header__about__position__role">Former %s %s</span>'), |
|
| 50 | - $lat, |
|
| 51 | - $latest_membership['rep_name'] |
|
| 52 | - ); |
|
| 53 | - } |
|
| 54 | - } |
|
| 55 | - ?> |
|
| 23 | + if ($latest_membership['current']) { |
|
| 24 | + if ($latest_membership['constituency']) { |
|
| 25 | + # First %s is party, second is type of rep (e.g. MS), third is constituency name |
|
| 26 | + printf( |
|
| 27 | + gettext('<span class="person-header__about__position__role">%s %s</span> for <span class="person-header__about__position__constituency">%s</span>'), |
|
| 28 | + $lat, |
|
| 29 | + $latest_membership['rep_name'], |
|
| 30 | + $latest_membership['constituency'] |
|
| 31 | + ); |
|
| 32 | + } else { |
|
| 33 | + printf( |
|
| 34 | + gettext('<span class="person-header__about__position__role">%s %s</span>'), |
|
| 35 | + $lat, |
|
| 36 | + $latest_membership['rep_name'] |
|
| 37 | + ); |
|
| 38 | + } |
|
| 39 | + } else { |
|
| 40 | + if ($latest_membership['constituency']) { |
|
| 41 | + printf( |
|
| 42 | + gettext('<span class="person-header__about__position__role">Former %s %s</span> for <span class="person-header__about__position__constituency">%s</span>'), |
|
| 43 | + $lat, |
|
| 44 | + $latest_membership['rep_name'], |
|
| 45 | + $latest_membership['constituency'] |
|
| 46 | + ); |
|
| 47 | + } else { |
|
| 48 | + printf( |
|
| 49 | + gettext('<span class="person-header__about__position__role">Former %s %s</span>'), |
|
| 50 | + $lat, |
|
| 51 | + $latest_membership['rep_name'] |
|
| 52 | + ); |
|
| 53 | + } |
|
| 54 | + } |
|
| 55 | + ?> |
|
| 56 | 56 | </p> |
| 57 | 57 | <?php } ?> |
| 58 | 58 | <?php if (count($social_links) > 0) { ?> |
@@ -77,13 +77,13 @@ discard block |
||
| 77 | 77 | <?php if ($current_member_anywhere) { ?> |
| 78 | 78 | <div class="person-header__actions"> |
| 79 | 79 | <?php if ($this_page != 'royal') { |
| 80 | - $wtt_url = 'https://www.writetothem.com/'; |
|
| 81 | - if ($current_member[HOUSE_TYPE_LORDS]) { |
|
| 82 | - $wtt_url = $wtt_url . "?person=uk.org.publicwhip/person/$person_id"; |
|
| 83 | - } elseif ($the_users_mp) { |
|
| 84 | - $wtt_url = $wtt_url . "?a=WMC&pc=" . _htmlentities(urlencode($user_postcode)); |
|
| 85 | - } |
|
| 86 | - ?> |
|
| 80 | + $wtt_url = 'https://www.writetothem.com/'; |
|
| 81 | + if ($current_member[HOUSE_TYPE_LORDS]) { |
|
| 82 | + $wtt_url = $wtt_url . "?person=uk.org.publicwhip/person/$person_id"; |
|
| 83 | + } elseif ($the_users_mp) { |
|
| 84 | + $wtt_url = $wtt_url . "?a=WMC&pc=" . _htmlentities(urlencode($user_postcode)); |
|
| 85 | + } |
|
| 86 | + ?> |
|
| 87 | 87 | <a href="<?= $wtt_url ?>" class="button" onclick="trackLinkClick(this, 'link_click', 'WriteToThem', 'Person'); return false;"><?= gettext('Send a message') ?></a> |
| 88 | 88 | <?php } ?> |
| 89 | 89 | <?php if ($has_email_alerts) { ?> |
@@ -44,15 +44,15 @@ |
||
| 44 | 44 | <text font-size="24" font-weight="normal" fill="#000000"> |
| 45 | 45 | <?php foreach ($lines as $j => $line) { ?> |
| 46 | 46 | <tspan x="40" y="<?= $stance_y + $stance_padding_top + $stance_baseline_offset + ($stance_lineheight * $j) ?>"><?php |
| 47 | - if (strpos($line, '*') !== false) { |
|
| 48 | - echo preg_replace( |
|
| 49 | - '#(?:^|[*])([^\r\n *][^*\n]*[^\r\n *])(?:$|[*])#i', |
|
| 50 | - '$1', |
|
| 51 | - $line |
|
| 52 | - ); |
|
| 53 | - } else { |
|
| 54 | - echo $line; |
|
| 55 | - } |
|
| 47 | + if (strpos($line, '*') !== false) { |
|
| 48 | + echo preg_replace( |
|
| 49 | + '#(?:^|[*])([^\r\n *][^*\n]*[^\r\n *])(?:$|[*])#i', |
|
| 50 | + '$1', |
|
| 51 | + $line |
|
| 52 | + ); |
|
| 53 | + } else { |
|
| 54 | + echo $line; |
|
| 55 | + } |
|
| 56 | 56 | ?></tspan> |
| 57 | 57 | <?php } ?> |
| 58 | 58 | </text> |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | $data = []; |
| 98 | 98 | foreach ($q as $row) { |
| 99 | - $data[] = [ |
|
| 99 | + $data[] = [ |
|
| 100 | 100 | 'report_id' => $row['report_id'], |
| 101 | 101 | 'comment_id' => $row['comment_id'], |
| 102 | 102 | 'firstname' => $row['firstname'], |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | ]; |
| 108 | 108 | } |
| 109 | 109 | foreach ($r as $row) { |
| 110 | - $data[] = [ |
|
| 110 | + $data[] = [ |
|
| 111 | 111 | 'report_id' => $row['report_id'], |
| 112 | 112 | 'comment_id' => $row['comment_id'], |
| 113 | 113 | 'firstname' => $row['firstname'], |