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


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ticket #2051
Author Message
kazuo Offline
Junior Member
*

Posts: 36
Joined: Aug 2009
Reputation: 0
Post: #4
RE: Ticket #2051
The problem was solved.
Thank you.

(11-21-2009 10:19 PM)RatS Wrote:  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-22-2009 03:00 PM
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)