mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 15:20:32 -04:00
Keep IndexableText null if it's an empty string
The `Validate()` method is correctly setting it to null, but then the `UPDATE` SQL statement is triggering another call to `GetIndexableText()`. Without this change, empty strings are being written to the `IndexableText` column.
This commit is contained in:
parent
55e0428006
commit
804b786065
1 changed files with 4 additions and 0 deletions
|
@ -729,6 +729,10 @@ final class Ebook{
|
|||
}
|
||||
|
||||
$this->_IndexableText = Formatter::RemoveDiacriticsAndNonalphanumerics($this->_IndexableText);
|
||||
|
||||
if($this->_IndexableText == ''){
|
||||
$this->_IndexableText = null;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->_IndexableText;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue