Small fixes

This commit is contained in:
Thomas Tanghus 2012-01-01 20:06:35 +01:00
parent c500c1e930
commit 929ce2b566

View file

@ -55,6 +55,15 @@ class OC_Image {
}
}
/**
* @brief Determine whether the object contains an image resource.
* returns bool
*/
function empty() {
if(self::$resource && self::$destroy) {
}
}
/**
* @brief Prints the image.
*/
@ -116,9 +125,6 @@ class OC_Image {
* @returns An image resource or false on error
*/
static public function loadFromFile($imagepath=false) {
if(!is_string($imagepath)) {
return false;
}
if(!is_file($imagepath) || !file_exists($imagepath) || !is_readable($imagepath)) {
OC_Log::write('core','OC_Image::loadFromFile, couldn\'t load'.$imagepath, OC_Log::DEBUG);
return false;