diff options
author | Andrew Dolgov <[email protected]> | 2007-08-16 13:19:00 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-08-16 13:19:00 +0100 |
commit | 0d276d67b0fff87809ac24dacdc7747aff0a8fd2 (patch) | |
tree | 0facbca2d2a0343f52a3ff3b32f29261ab4e8ec5 /functions.php | |
parent | 766d42aed5a6f51202598dfd9e9995b090609f5a (diff) |
workaround against mysql refusing to have defaults for text values (closes #137)
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 629b78cb3..40b32df88 100644 --- a/functions.php +++ b/functions.php @@ -988,7 +988,7 @@ // db_query($link, "COMMIT"); } else { - $error_msg = db_escape_string(magpie_error()); + $error_msg = mb_substr(db_escape_string(magpie_error()), 0, 250); db_query($link, "UPDATE ttrss_feeds SET last_error = '$error_msg', last_updated = NOW() WHERE id = '$feed'"); |