com web/bugs: Minor fixes: include/functions.php www/js/userlisting.php

From: Date: Sat, 21 Jul 2018 00:57:06 +0000
Subject: com web/bugs: Minor fixes: include/functions.php www/js/userlisting.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-27148@lists.php.net to get a copy of this message
Commit: 196bfff9ba2f35e3b37665f430ea2ba1edf5e7f8 Author: Rasmus Lerdorf <rasmus@php.net> Fri, 20 Jul 2018 20:57:06 -0400 Parents: 2425be23c5a556097b2758ffbc5607a22d4d6349 Branches: master Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=196bfff9ba2f35e3b37665f430ea2ba1edf5e7f8 Log: Minor fixes Changed paths: M include/functions.php M www/js/userlisting.php Diff: diff --git a/include/functions.php b/include/functions.php index a8c6ec1..378a7ed 100644 --- a/include/functions.php +++ b/include/functions.php @@ -1384,7 +1384,7 @@ function get_package_mail($package_name, $bug_id = false, $bug_type = 'Bug') $to[] = $assigned; } } - $bcc = $dbh->prepare("SELECT email FROM bugdb_subscribe WHERE bug_id=?")->execute([$bug_id])->fetchCol(); + $bcc = $dbh->prepare("SELECT email FROM bugdb_subscribe WHERE bug_id=?")->execute([$bug_id])->fetchOne(); $bcc = array_unique($bcc); return array(implode(', ', $to), $mailfrom, implode(', ', $bcc), $params); diff --git a/www/js/userlisting.php b/www/js/userlisting.php index 87bbf3d..f79f046 100644 --- a/www/js/userlisting.php +++ b/www/js/userlisting.php @@ -31,6 +31,7 @@ if (!file_exists("/tmp/svnusers.json") || filemetime("/tmp/svnusers.json") < $_S $json = getAllUsers(); $json_data = var_export($json, true); file_put_contents("/tmp/svnusers.php", '<?php $json = '.$json_data.';'); + $modified = time(); } else { include "/tmp/svnusers.php"; $modified = filemtime("/tmp/svnusers.php");

« previous php.webmaster (#27148) next »