Current time: 05-03-2024, 10:07 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ticket #2051
Author Message
RatS Offline
Project Leader
******

Posts: 1,854
Joined: Oct 2006
Reputation: 17
Post: #3
RE: Ticket #2051
please try to replace starting @ line 207 at /var/www/ispcp/engine/quota/ispcp-dsk-quota

Quote: foreach(@$ref) {
# Replace unknown values by 0
$data_length = (@$_[6] =~ /^\d+$/) ? @$_[6] : 0;
$index_length = (@$_[8] =~ /^\d+$/) ? @$_[8] : 0;

$size += $data_length + $index_length;
}

by

Quote: foreach(@$ref) {
# Replace unknown values by 0
$data_length = (defined(@$_[6]) && @$_[6] =~ /^\d+$/) ? @$_[6] : 0;
$index_length = (defined(@$_[8]) && @$_[8] =~ /^\d+$/) ? @$_[8] : 0;

$size += $data_length + $index_length;
}

Does the warning still occurs?
11-21-2009 10:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Ticket #2051 - kazuo - 11-12-2009, 05:42 PM
RE: Ticket #2051 - kazuo - 11-21-2009, 06:20 PM
RE: Ticket #2051 - RatS - 11-21-2009 10:19 PM
RE: Ticket #2051 - kazuo - 11-22-2009, 03:00 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)