]> source.dussan.org Git - nextcloud-server.git/commit
Added error check to lib/private/image.php
authorByron Marohn <combustible@live.com>
Mon, 15 Sep 2014 23:12:07 +0000 (16:12 -0700)
committerMorris Jobke <hey@morrisjobke.de>
Fri, 2 Jan 2015 07:48:59 +0000 (08:48 +0100)
commit8778af681cb3a17068a47d9afb916f8155b66a55
tree3725e131b8a5bfa182aa325ee566b6b3f3089c7b
parentfb63e75743cae8de15372df88f1f04bf73404981
Added error check to lib/private/image.php

This checks that imagecreatetruecolor actually creates an image, rather than returning FALSE.
Without this check, subsequent loop might create billions of ERROR-level log messages.

Signed-off-by: Byron Marohn <combustible@live.com>
lib/private/image.php