[fix] Correct some PHP7-related warnings.

This commit is contained in:
Solomon Peachy 2017-08-22 09:02:41 -04:00
parent 03679f4bb4
commit b231b8a287
3 changed files with 7 additions and 2 deletions

View File

@ -40,6 +40,7 @@ v2.38 (Unreleased)
[misc] Eliminate the entire notion of 'duplicates'
[misc] Eliminate label printing
[misc] Don't display the 'spool' on the main page
[fix] Fix some PHP7-related warnings
v2.37.1 (December 3, 2012)

View File

@ -40,6 +40,10 @@ $rss->useCached();
// folders [id] [user] [tag]
// albums [id] [user] [tag]
// Initialize stuff
$froms = array();
$filter = "";
// Work around bug in JustPictures and possibly others...
foreach ($_REQUEST as $key => $value) {
if (substr($value, -1) == "?") {
@ -49,7 +53,7 @@ foreach ($_REQUEST as $key => $value) {
}
}
$feedtype = isset($_REQUEST['type']) ? $_REQUEST['type'] : photos;
$feedtype = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'photos';
switch ($feedtype) {
case 'photos':

View File

@ -20,7 +20,7 @@ class stemming {
var $j;
var $k;
function stemming() {
function __construct() {
$this->buffer = array();
$this->stemIdx = 0;
}