Saving an empty CSS file triggers bogus warning

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
cmb
Posts: 12940
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Saving an empty CSS file triggers bogus warning

Post by cmb » Sun Mar 12, 2017 2:44 pm

Saving an empty CSS file (regardless whether template or plugin stylesheet) triggers a bogus "Could not save file" warning, even though saving the empty file succeeded.

This is caused by a sloppy check of the return value of XH_FileEdit::save() which may return zero or false.

I've fixed that right away.
Christoph M. Becker –Plugins for CMSimple_XH

Post Reply