mirror of https://github.com/BOINC/boinc.git
Merge pull request #4778 from BOINC/dpa_web7
web: a couple more PHP 8.1 fixes
This commit is contained in:
commit
d15a3b7590
|
@ -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
|
||||
|
|
|
@ -1024,6 +1024,7 @@ function sanitize_local_url($x) {
|
|||
// strip HTML tags
|
||||
//
|
||||
function sanitize_tags($x) {
|
||||
if (!$x) return $x;
|
||||
return strip_tags($x);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue