[Owncloud] Code review? OC_Image class

Thomas Olsen thomas at tanghus.net
Sun Jan 1 23:02:48 UTC 2012


On Sunday 01 January 2012 23:58 Robin Appelman wrote:
> "// if($this->valid()) { // FIXME: I get an error: "PHP Fatal error:
> Using $this when not in object context..." WTF?"
> 
> the function loadFromFile is static, so while in that function you're
> not in object context.

Facepalm - Thanks :-) 

So I'd better make it non-static, right?

-- 
Med venlig hilsen / Best Regards

Thomas Olsen



More information about the Owncloud mailing list