Php warnings
-
Hi, thanks for a very nice plugin.
I see a problem though. It’s in both 2.5.2 and 2.5.1.
When the plugin is activated there’s a php warning:
( ! ) WARNING: MKDIR(): FILE EXISTS IN WP-CONTENT\PLUGINS\EASYCODER\EASYCODER.PHP ON LINE 27Looking at that line I see that
mkdir(ABSPATH . ‘easycoder’);is called every time the action init runs.
when I changed the code to
if (!file_exists(ABSPATH . ‘easycoder’)) {
mkdir(ABSPATH . ‘easycoder’);
}
the warning disappeared
- The topic ‘Php warnings’ is closed to new replies.