Private GIT

Skip to content
Snippets Groups Projects
Commit 09bdc941 authored by Miha Petkovsek's avatar Miha Petkovsek
Browse files

Fixed #1683 7.2 compatibility

parent b2368658
No related branches found
No related tags found
No related merge requests found
......@@ -280,7 +280,7 @@ if(sizeof($address)>1) {
}
}
}
if(sizeof(@$active_shares)>0) {
if(isset($active_shares)) {
# divider
print "<tr><td colspan='2'><h4 style='padding-top:20px;'>"._('Temporary shares')."</h4></tr>";
......@@ -296,7 +296,7 @@ if(sizeof($address)>1) {
print "<td>";
print "</tr>";
}
if(sizeof(@$expired_shares)>0) {
if(isset($expired_shares)) {
# divider
print "<tr>";
print " <th><hr></th>";
......
......@@ -234,7 +234,7 @@ $Result = new Result();
$discovered = 0; //for mailing
foreach($scan_subnets as $s) {
if(sizeof(@$s->discovered)>0) {
if(isset($s->discovered)) {
foreach($s->discovered as $ip) {
// fetch subnet
$subnet = $Subnets->fetch_subnet ("id", $s->id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment