Merge pull request #4778 from BOINC/dpa_web7

web: a couple more PHP 8.1 fixes
This commit is contained in:
Vitalii Koshura 2022-06-13 10:46:30 +02:00 committed by GitHub
commit d15a3b7590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -79,8 +79,8 @@ function get_other_projects($user) {
//
$remote = @json_decode(json_encode((array)$xml_object))->project;
if (!$remote) $remote = [];
if (count($remote) == 1) {
$remote = array($remote);
if (!is_array($remote)) {
$remote = [$remote];
}
// Cache the results

View File

@ -1024,6 +1024,7 @@ function sanitize_local_url($x) {
// strip HTML tags
//
function sanitize_tags($x) {
if (!$x) return $x;
return strip_tags($x);
}