Library -> Edit Metadata:Exception in zendphp.log if trying to set a really large number as track number

-fixed
This commit is contained in:
Martin Konecny 2013-05-29 13:47:55 -04:00
parent 4a7a08a119
commit 362eba60d5
1 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,14 @@ class CcFiles extends BaseCcFiles {
return $this;
}
public function setDbTrackNumber($v)
{
$max = pow(2, 31)-1;
$v = ($v > $max) ? $max : $v;
return parent::setDbTrackNumber($v);
}
// returns true if the file exists and is not hidden
public function visible() {
return $this->getDbFileExists() && !$this->getDbHidden();