update db record when we findout the disk space of an event
parent
9f22b3ccf4
commit
76d37d4c95
|
@ -165,6 +165,7 @@ class Event {
|
|||
function DiskSpace() {
|
||||
if ( null == $this{'DiskSpace'} ) {
|
||||
$this{'DiskSpace'} = folder_size( $this->Path() );
|
||||
dbQuery( 'UPDATE Events SET DiskSpace=? WHERE Id=?', array( $this->{'DiskSpace'}, $this->{'Id'} ) );
|
||||
}
|
||||
return $this{'DiskSpace'};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue