Small fixes
This commit is contained in:
parent
c500c1e930
commit
929ce2b566
1 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue