Skip to content
Snippets Groups Projects
Commit 929ce2b5 authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Small fixes

parent c500c1e9
Branches
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment