Revision cd34a32b
Added by Phil Davis over 9 years ago
src/etc/inc/notices.inc | ||
---|---|---|
101 | 101 |
$queue[$queuekey] = $toqueue; |
102 | 102 |
$queueout = fopen($notice_path, "w"); |
103 | 103 |
if (!$queueout) { |
104 |
log_error(printf(gettext("Could not open %s for writing"), $notice_path)); |
|
104 |
log_error(sprintf(gettext("Could not open %s for writing"), $notice_path));
|
|
105 | 105 |
return; |
106 | 106 |
} |
107 | 107 |
fwrite($queueout, serialize($queue)); |
Also available in: Unified diff
Always use sprintf with log_error
I noticed this while looking at other stuff in notices.inc
If this log_error() call ever happened, it would not have done anything useful.