Fix byref errors

pull/37/head
Varun Patil 2022-09-10 15:31:11 -07:00
parent 4d8a8f22f8
commit 23ccf41ebd
2 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ class TimelineQuery {
*/
public function getDays(
IConfig &$config,
string &$user): array {
string $user): array {
$sql = 'SELECT `*PREFIX*memories`.`dayid`, COUNT(`*PREFIX*memories`.`fileid`) AS count
FROM `*PREFIX*memories`
@ -92,8 +92,8 @@ class TimelineQuery {
*/
public function getDay(
IConfig &$config,
string &$user,
int &$dayId): array {
string $user,
int $dayId): array {
$sql = 'SELECT `*PREFIX*memories`.`fileid`, *PREFIX*filecache.etag, `*PREFIX*memories`.`isvideo`
FROM *PREFIX*memories

View File

@ -12,7 +12,7 @@ class Util {
* @param IConfig $config
* @param string $userId
*/
public static function getPhotosPath(IConfig &$config, string &$userId) {
public static function getPhotosPath(IConfig &$config, string $userId) {
$p = $config->getUserValue($userId, Application::APPNAME, 'timelinePath', '');
if (empty($p)) {
return '/Photos/';