| @@ -92,19 +92,13 @@ | ||
| 92 | 92 | * @param string $key |
| 93 | 93 | * @param string|array $value |
| 94 | 94 | * @param string $where |
| 95 | 95 | * @param array $values |
| 96 | + * @return void | |
| 96 | 97 | */ |
| 97 | 98 | private static function interpret_array_to_sql( $key, $value, &$where, &$values ) { |
| 98 | - $key = trim( $key ); | |
| 99 | - | |
| 100 | - if ( strpos( $key, 'created_at' ) !== false || strpos( $key, 'updated_at' ) !== false ) { | |
| 101 | - $k = explode( ' ', $key ); | |
| 102 | - $where .= ' DATE_FORMAT(' . reset( $k ) . ', %s) ' . str_replace( reset( $k ), '', $key ); | |
| 103 | - $values[] = '%Y-%m-%d %H:%i:%s'; | |
| 104 | - } else { | |
| 105 | - $where .= ' ' . $key; | |
| 106 | - } | |
| 99 | + $key = trim( $key ); | |
| 100 | + $where .= ' ' . $key; | |
| 107 | 101 | |
| 108 | 102 | $lowercase_key = explode( ' ', strtolower( $key ) ); |
| 109 | 103 | $lowercase_key = end( $lowercase_key ); |
| 110 | 104 | |